Robotics StackExchange | Archived questions

How to add controller through calling controller_manager service in C++

Hi everyone

I meet with a problem with controllermanager. In my project, I need to dynamically delete or spawn a hectorquadrotor. But after spawning a hectorquadrotor in ros-gazebo. It does not have essential topics (cmd/vel and groundtotruth/pose) for control. I try to call controllermanager/load_controller service to add control/twist controller to it. But it always fails. I did not find much relevant information about how to use service. Does anyone know how to call this service to add controller to the robot in C++

Cheers,

Jason

Asked by jasonwang538@gmail.com on 2017-08-14 05:30:48 UTC

Comments

Answers