ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

A Robot should stop moving If cmd_vel is stopped Publishing or If STOP command send.

asked 2016-08-14 07:47:08 -0500

Atul Divekar gravatar image

updated 2016-08-16 00:33:34 -0500

Hello I have one confusion
I am publishing cmd_vel ( geometry_msgs/Twist ) messages using teleop_twist_keyboard . The Robot subscribes this messages i.e cmd_vel message. When should my robot stop moving ? a) As soon as I stop sending or publishing the cmd_vel from the Keyboard OR b) It should stop moving If i send him a STOP command Please can anyone Suggest which one is the Right ?

edit retag flag offensive close merge delete

Comments

You've updated this without providing any additional info; it looks like you're trying to gather additional answers. Is there something that was unclear or not satisfying about my answer?

ahendrix gravatar image ahendrix  ( 2016-08-16 01:22:44 -0500 )edit

1 Answer

Sort by » oldest newest most voted
2

answered 2016-08-14 11:57:51 -0500

ahendrix gravatar image

For safety, most robots use the first option (a), with a timeout.

If the ROS node that receives /cmd_vel doesn't receive a message within a certain time period, it brings the robot to a stop. I'd recommend a 1 to 2 second timeout for most indoor robots

The timeout ensures that if the connection to teleop is lost, or an autonomous navigation node stops sending commands, the robot comes to a stop instead of driving into a wall or other obstacle.

edit flag offensive delete link more

Comments

Thank you.

Atul Divekar gravatar image Atul Divekar  ( 2016-08-16 07:21:59 -0500 )edit

I have the similar questions.. just wondering if anybody has some implementation that can be refer to?

macleonsh gravatar image macleonsh  ( 2019-05-11 04:22:20 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2016-08-14 07:47:08 -0500

Seen: 786 times

Last updated: Aug 16 '16