Skip to content
Snippets Groups Projects
Commit 7f1cb829 authored by Emil Harlan's avatar Emil Harlan
Browse files

a

parent 255a6923
No related branches found
No related tags found
No related merge requests found
......@@ -57,7 +57,7 @@ class Robomaster_odom(Node):
t = TransformStamped()
t.header.stamp = self.get_clock().now().to_msg()
t.header.frame_id = 'odom'
t.child_frame_id = "base_link"
t.child_frame_id = "base_footprint"
t.transform.translation.x = float(xyzlist[0])
t.transform.translation.y = float(xyzlist[1])
t.transform.translation.z = 0.0
......
......@@ -24,9 +24,9 @@ s.send(("command;").encode('utf-8'))
class vel_from_ros_node(Node):
def __init__(self):
super().__init__("el_from_ros")
super().__init__("vel_from_ros")
self.get_vel_from_ros_ = self.create_subscription(
Twist, "/cmd_vel_out", self.pose_callback, 10)
Twist, "/cmd_vel", self.pose_callback, 10)
def pose_callback(self, msg: Twist):
command = "chassis speed x " + str(msg.linear.x) + " y " + str(msg.linear.y) + " z " + str(msg.angular.z) + ";"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment