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

a

parent 0bdba242
No related branches found
No related tags found
No related merge requests found
...@@ -67,7 +67,7 @@ class vel_from_ros_node(Node): ...@@ -67,7 +67,7 @@ class vel_from_ros_node(Node):
def pose_callback(self, msg: Twist): def pose_callback(self, msg: Twist):
if((msg.angular.z == 0.0 and msg.linear.x == 0.0 and msg.linear.y == 0.0) or self.response != 0): if((msg.angular.z == 0.0 and msg.linear.x == 0.0 and msg.linear.y == 0.0)):
self.my_ep_chassis.drive_speed(x = 0, y = 0, z = 0.5) self.my_ep_chassis.drive_speed(x = 0, y = 0, z = 0.5)
else: else:
self.my_ep_chassis.drive_speed(x = msg.linear.x, y = -msg.linear.y, z = -msg.angular.z * (180 / math.pi)) self.my_ep_chassis.drive_speed(x = msg.linear.x, y = -msg.linear.y, z = -msg.angular.z * (180 / math.pi))
......
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