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