29 #ifndef VIGIR_FOOTSTEP_PLANNING_STEP_PLAN_H__ 30 #define VIGIR_FOOTSTEP_PLANNING_STEP_PLAN_H__ 36 #include <boost/thread/shared_mutex.hpp> 51 StepPlan(
const msgs::StepPlan& step_plan);
81 msgs::ErrorStatus
insertStep(
const msgs::Step& step);
82 msgs::ErrorStatus
updateStep(
const msgs::Step& step);
84 bool hasStep(
unsigned int step_index)
const 90 static bool getStep(msgs::Step& step,
const msgs::StepPlan& step_plan,
unsigned int step_index);
91 inline bool getStep(msgs::Step& step,
unsigned int step_index)
const 97 bool getStepAt(msgs::Step& step,
unsigned int position)
const;
101 bool popStep(msgs::Step& step);
107 void removeSteps(
unsigned int from_step_index,
int to_step_index = -1);
114 msgs::ErrorStatus
appendStepPlan(
const msgs::StepPlan& step_plan);
122 msgs::ErrorStatus
updateStepPlan(
const msgs::StepPlan& step_plan);
135 msgs::ErrorStatus
stitchStepPlan(
const msgs::StepPlan& step_plan,
int step_index = 0);
147 msgs::ErrorStatus
fromMsg(
const msgs::StepPlan& step_plan);
148 msgs::ErrorStatus
toMsg(msgs::StepPlan& step_plan)
const;
158 size_t _size()
const;
160 bool _hasStep(
unsigned int step_index)
const;
162 bool _getStep(msgs::Step& step,
unsigned int step_index)
const;
170 msgs::ErrorStatus
_insertStep(
const msgs::Step& step);
178 msgs::ErrorStatus
_updateStep(
const msgs::Step& step);
205 msgs::ErrorStatus
_stitchStepPlan(
const msgs::StepPlan& step_plan,
int step_index = 0);
212 std::map<unsigned int, msgs::Step>
steps;