husarion / rosbot_ros

ROS packages for ROSbot 2, 2R and 2 PRO
122 stars 62 forks source link

Force stop the rosbot #4

Closed ashishk88 closed 4 years ago

ashishk88 commented 5 years ago

Is there a way to force stop the rosbot? On an uneven surface, the rosbot gets stuck and doesn't accept zero velocity commands?

Also, a way to override the last velocity command will work!

lukaszmitka commented 4 years ago

Hello,

ROSbot is accepting zero velocity command, you can publish appropriate message on /cmd_vel to stop the ROSbot.

Simplest way to send zero velocity command once is to use rostopic pub tool: rostopic pub /cmd_vel geometry_msgs/Twist '{linear: {x: 0.0, y: 0.0, z: 0.0}, angular: {x: 0.0, y: 0.0, z: 0.0}}'

You can also use teleop_twist_keyboard

Regards, Łukasz