[ros-users] Problem with dynamic reconfigure

Jack O'Quin jack.oquin at gmail.com
Tue Feb 8 00:39:56 UTC 2011

On Sun, Feb 6, 2011 at 8:26 AM, Zhiping <TANZ0066 at e.ntu.edu.sg> wrote:

> dynamic_reconfigure::Server<base_local_planner::MyStuffConfig> srv;
> ( line 121)
> dynamic_reconfigure::Server<base_local_planner::MyStuffConfig>::CallbackType
> f = boost::bind(&TrajectoryPlanner::reconfigureCB,this, _1, _2);
> srv.setCallback(f);
> but it does not work too.

I had a similar problem once. In my case, it turned out that srv was
automatic, not a class variable, so it was destroyed immediately when
the containing function returned, and the service did not remain

More information about the ros-users mailing list