31 if (step_plan.steps.empty())
34 std::vector<msgs::Step>::iterator itr = step_plan.steps.begin();
37 msgs::Step left_foot, right_foot = *itr;
39 if (left_foot.foot.foot_index != msgs::Foot::LEFT)
40 left_foot.foot = step_plan.start.left;
42 if (right_foot.foot.foot_index != msgs::Foot::RIGHT)
43 right_foot.foot = step_plan.start.right;
46 for (; itr != step_plan.steps.end(); itr++)
48 msgs::Step& swing_foot = *itr;
52 if (swing_foot.foot.foot_index == msgs::Foot::LEFT)
53 left_foot = swing_foot;
55 right_foot = swing_foot;