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

Velocity imparted by twist.linear

asked 2017-08-14 07:39:51 -0500

BotLover gravatar image

Hi, I am publishing twist.linear.x = 0.5 on cmd_vel topic within the callback function of /pose topic. Whenever pose in x direction of my bot is less than goal x component I publish the twist command. For the /pose callback I am using rosspin with a ros::rate of 0.5 hz (ie 1 time in 2 seconds). Does it mean that 0.5 m/s will be imparted to my bot until the next iteration of /pose callback continuously or it will impart 0.5 for an instant and my bot will be still and wait for next iteration? Thanks in advance!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2017-08-14 09:56:31 -0500

lucasw gravatar image

A simple controller might receive a single cmd_vel and then try to maintain that velocity forever, a more safety minded one could be set to maintain it for a few seconds then come to a stop if no other cmd_vel messages are received. It's possible at your low update rate the 0.5 m/s will decay a bit then bump back up to commanded speed when the next update arrives.

If you add more details on the node you have subscribing to cmd_vel the exact answer could be determined.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2017-08-14 07:39:51 -0500

Seen: 154 times

Last updated: Aug 14 '17