File tree Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -115,11 +115,8 @@ class Motion : public Service {
115115
116116 // / @brief An individual "step", representing the state each component (keyed as a fully
117117 // / qualified component name) should reach while executing that step of the plan.
118- using step = std::unordered_map<std::string, pose>;
119-
120- // / @brief An ordered list of plan steps.
121118 // / @ingroup Motion
122- using steps = std::vector<step >;
119+ using step = std::unordered_map<std::string, pose >;
123120
124121 // / @struct plan
125122 // / @brief Describes a motion plan.
@@ -136,7 +133,7 @@ class Motion : public Service {
136133 std::string execution_id;
137134
138135 // / @brief An ordered list of plan steps.
139- steps steps;
136+ std::vector<step> steps;
140137
141138 friend bool operator ==(const plan& lhs, const plan& rhs);
142139 };
Original file line number Diff line number Diff line change @@ -137,9 +137,9 @@ Motion::plan_status_with_id from_proto(const service::motion::v1::PlanStatusWith
137137 return pswi;
138138}
139139
140- Motion::steps steps_from_proto (
140+ std::vector< Motion::step> steps_from_proto (
141141 const google::protobuf::RepeatedPtrField<service::motion::v1::PlanStep>& proto) {
142- Motion::steps steps;
142+ std::vector< Motion::step> steps;
143143 for (const auto & ps : proto) {
144144 Motion::step step;
145145 for (const auto & component : ps.step ()) {
You can’t perform that action at this time.
0 commit comments