Robotics StackExchange | Archived questions

When resetting the simulation p3d_base_controller the odometry topic stops working

I'm using the p3dbasecontroller plugin for getting odometry data of a robot model. When you call the gazebo/reset_simulation service, lets say in the ROS time 21sec, the odom topic wont start working again until that time.

Is there a way to restart this controller? Because it doesn't appear in the /movingcube/controllermanager/list_controllers, because its not loaded through that path, but through the Gazebo plugin automatic loading system.

Can anyone tell me if there is a fix to this?

Asked by Duckfrost on 2018-06-22 05:22:04 UTC

Comments

You are starting the controller before the simulation?

Asked by wentz on 2018-06-25 06:31:32 UTC

Make sure that the parameter /use_sim_time on the rosparam server is set before you start your nodes.

Asked by wentz on 2018-06-25 06:32:19 UTC

Answers