Re: [ros-users] Problem with dynamic reconfigure

Forside
Vedhæftede filer:
Indlæg som e-mail
+ (text/plain)
Slet denne besked
Besvar denne besked
Skribent: User discussions
Dato:  
Til: User discussions
Emne: Re: [ros-users] Problem with dynamic reconfigure
On Sun, Feb 6, 2011 at 8:26 AM, Zhiping <> 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
active.
--
 joq