15 nav_msgs::Path forwardpath = odomTracker->getPath();
18 odomTracker->setWorkingMode(WorkingMode::CLEAR_PATH);
20 ClMoveBaseZ::Goal goal;
23 if (forwardpath.poses.size() > 0)
25 goal.target_pose = forwardpath.poses.front();
31 ROS_INFO(
"[CbUndoPathBackwards] forced to use Pure Spinning local planner");
32 plannerSwitcher->setUndoPathPureSpinningPlannerConfiguration();
36 plannerSwitcher->setUndoPathBackwardsPlannerConfiguration();
37 ROS_INFO(
"[CbUndoPathBackwards] forced to use BackwardsLocalPlanner (default)");
42 ROS_INFO(
"[CbUndoPathBackwards] using default local planner: BackwardsLocalPlanner");
43 plannerSwitcher->setUndoPathBackwardsPlannerConfiguration();
53 odomTracker->popPath();
ClMoveBaseZ * moveBaseClient_
virtual void onExit() override
boost::optional< UndoPathLocalPlanner > forceUndoLocalPlanner
virtual void onEntry() override
TComponent * getComponent()
void sendGoal(Goal &goal)
@ PureSpinningLocalPlanner