Skip to content

Commit 3084f99

Browse files
committed
[RSDK-10385] Remove unhelpful typedef as well
1 parent d0b0974 commit 3084f99

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

Diff for: src/viam/sdk/services/motion.hpp

+2-5
Original file line numberDiff line numberDiff 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
};

Diff for: src/viam/sdk/services/private/motion_client.cpp

+2-2
Original file line numberDiff line numberDiff 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()) {

0 commit comments

Comments
 (0)