Re: [ros-users] Problem with dynamic reconfigure

トップ ページ
添付ファイル:
Eメールのメッセージ
+ (text/plain)
このメッセージを削除
このメッセージに返信
著者: User discussions
日付:  
To: User discussions
題目: 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.