File tree 2 files changed +4
-7
lines changed
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 {
115
115
116
116
// / @brief An individual "step", representing the state each component (keyed as a fully
117
117
// / 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.
121
118
// / @ingroup Motion
122
- using steps = std::vector<step >;
119
+ using step = std::unordered_map<std::string, pose >;
123
120
124
121
// / @struct plan
125
122
// / @brief Describes a motion plan.
@@ -136,7 +133,7 @@ class Motion : public Service {
136
133
std::string execution_id;
137
134
138
135
// / @brief An ordered list of plan steps.
139
- steps steps;
136
+ std::vector<step> steps;
140
137
141
138
friend bool operator ==(const plan& lhs, const plan& rhs);
142
139
};
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
137
137
return pswi;
138
138
}
139
139
140
- Motion::steps steps_from_proto (
140
+ std::vector< Motion::step> steps_from_proto (
141
141
const google::protobuf::RepeatedPtrField<service::motion::v1::PlanStep>& proto) {
142
- Motion::steps steps;
142
+ std::vector< Motion::step> steps;
143
143
for (const auto & ps : proto) {
144
144
Motion::step step;
145
145
for (const auto & component : ps.step ()) {
You can’t perform that action at this time.
0 commit comments