Re: [ros-users] Problem with dynamic reconfigure

Top Pagina
Bijlagen:
Bericht als e-mail
+ (text/plain)
Delete this message
Reply to this message
Auteur: User discussions
Datum:  
Aan: User discussions
Onderwerp: 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.