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 Mon, Jan 31, 2011 at 3:14 AM, Zhiping <> wrote:
>
> Thanks for the reply.
>
> I have changed
>
> dynamic_reconfigure::Server<base_local_planner::MyStuffConfig>::CallbackType
> f = boost::bind(&TrajectoryPlanner::reconfigureCB, _1, _2);
> to
>
> dynamic_reconfigure::Server<base_local_planner::MyStuffConfig>::CallbackType
> f = boost::bind(&TrajectoryPlanner::reconfigureCB,&TrajectoryPlanner, _1,
> _2);


TrajectoryPlanner is your class, not the instance of your class. Try:
dynamic_reconfigure::Server<base_local_planner::MyStuffConfig>::CallbackType
f = boost::bind(&TrajectoryPlanner::reconfigureCB, this, _1,
_2);

> /opt/ros/cturtle/stacks/navigation/base_local_planner/src/trajectory_planner.cpp:120:
> error: ‘srv_’ was not declared in this scope


You do not have srv_ declared. You do have srv, however.