Gazebo | Ignition | Community
Ask Your Question

Gazebo ROS diff drive controller cmd_vel timeout

asked 2019-07-09 03:52:05 -0500

VansFannel gravatar image

I'm using ROS melodic and Gazebo 9.9.0 on an Ubuntu 18.04.2 LTS.

I have defined this diff drive controller for a Pioneer 2DX that I use in Gazebo. The robot comes from Gazebo library, and I have changed its controller for this one:

<plugin name="differential_drive_controller" filename="">

I'm new in ROS development, and I have read that most mobile base drivers will time out and stop the robot if they don't receive at least several messages per second.

Reading Diff Drive Controller ROS API, I have found that there is a parameter called cmd_vel_timeout that will do what I want to do.

Is there something similar in the that will stop the robot after no receiving cmd_vel messages for n seconds?

By the way, now, when I press Ctrl.+C, the robot doesn't stop. It seems that the robot doesn't any timeout value configured.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2019-07-09 07:33:27 -0500

chapulina gravatar image

There isn't a parameter like that. You could add one, here's the code.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower


Asked: 2019-07-09 03:52:05 -0500

Seen: 600 times

Last updated: Jul 09 '19