@@ -22,9 +22,10 @@ namespace sdk {
2222// / @ingroup Motion
2323struct obstacle_detector {
2424 // / @brief The name of the vision service to be used for obstacle detection.
25- Name vision_service;
25+ std::string vision_service;
26+
2627 // / @brief The name of the camera component to be used for obstacle detection.
27- Name camera;
28+ std::string camera;
2829
2930 friend bool operator ==(const obstacle_detector& lhs, const obstacle_detector& rhs);
3031 friend std::ostream& operator <<(std::ostream& os, const obstacle_detector& v);
@@ -102,7 +103,7 @@ class Motion : public Service {
102103 std::string plan_id;
103104
104105 // / @brief The component to be moved. Used for tracking and stopping.
105- Name component_name;
106+ std::string component_name;
106107
107108 // / @brief The unique ID which identifies the plan execution.
108109 std::string execution_id;
@@ -126,7 +127,7 @@ class Motion : public Service {
126127 std::string id;
127128
128129 // / @brief The component requested to be moved. Used for tracking and stopping.
129- Name component_name;
130+ std::string component_name;
130131
131132 // / @brief The unique ID which identifies the execution.
132133 // / Multiple plans can share the same execution_id if they were generated due to replanning.
@@ -198,7 +199,7 @@ class Motion : public Service {
198199 // / @param constraints Constraints to apply to how the robot will move.
199200 // / @return Whether or not the move was successful.
200201 inline bool move (const pose_in_frame& destination,
201- const Name & name,
202+ const std::string & name,
202203 const std::shared_ptr<WorldState>& world_state,
203204 const std::shared_ptr<constraints>& constraints) {
204205 return move (destination, name, world_state, constraints, {});
@@ -213,7 +214,7 @@ class Motion : public Service {
213214 // / @param extra Any additional arguments to the method.
214215 // / @return Whether or not the move was successful.
215216 virtual bool move (const pose_in_frame& destination,
216- const Name & name,
217+ const std::string & name,
217218 const std::shared_ptr<WorldState>& world_state,
218219 const std::shared_ptr<constraints>& constraints,
219220 const ProtoStruct& extra) = 0;
@@ -226,8 +227,8 @@ class Motion : public Service {
226227 // / @return The execution ID of the move_on_map request.
227228 inline std::string move_on_map (
228229 const pose& destination,
229- const Name & component_name,
230- const Name & slam_name,
230+ const std::string & component_name,
231+ const std::string & slam_name,
231232 const std::shared_ptr<motion_configuration>& motion_configuration,
232233 const std::vector<GeometryConfig>& obstacles) {
233234 return move_on_map (
@@ -243,8 +244,8 @@ class Motion : public Service {
243244 // / @return The execution ID of the move_on_map request.
244245 virtual std::string move_on_map (
245246 const pose& destination,
246- const Name & component_name,
247- const Name & slam_name,
247+ const std::string & component_name,
248+ const std::string & slam_name,
248249 const std::shared_ptr<motion_configuration>& motion_configuration,
249250 const std::vector<GeometryConfig>& obstacles,
250251 const ProtoStruct& extra) = 0;
@@ -262,8 +263,8 @@ class Motion : public Service {
262263 inline std::string move_on_globe (
263264 const geo_point& destination,
264265 const boost::optional<double >& heading,
265- const Name & component_name,
266- const Name & movement_sensor_name,
266+ const std::string & component_name,
267+ const std::string & movement_sensor_name,
267268 const std::vector<geo_geometry>& obstacles,
268269 const std::shared_ptr<motion_configuration>& motion_configuration,
269270 const std::vector<geo_geometry>& bounding_regions) {
@@ -291,8 +292,8 @@ class Motion : public Service {
291292 virtual std::string move_on_globe (
292293 const geo_point& destination,
293294 const boost::optional<double >& heading,
294- const Name & component_name,
295- const Name & movement_sensor_name,
295+ const std::string & component_name,
296+ const std::string & movement_sensor_name,
296297 const std::vector<geo_geometry>& obstacles,
297298 const std::shared_ptr<motion_configuration>& motion_configuration,
298299 const std::vector<geo_geometry>& bounding_regions,
@@ -306,7 +307,7 @@ class Motion : public Service {
306307 // / needed to compute the component's pose.
307308 // / @return The pose of the component.
308309 inline pose_in_frame get_pose (
309- const Name & component_name,
310+ const std::string & component_name,
310311 const std::string& destination_frame,
311312 const std::vector<WorldState::transform>& supplemental_transforms) {
312313 return get_pose (component_name, destination_frame, supplemental_transforms, {});
@@ -321,28 +322,28 @@ class Motion : public Service {
321322 // / @param extra Any additional arguments to the method.
322323 // / @return The pose of the component.
323324 virtual pose_in_frame get_pose (
324- const Name & component_name,
325+ const std::string & component_name,
325326 const std::string& destination_frame,
326327 const std::vector<WorldState::transform>& supplemental_transforms,
327328 const ProtoStruct& extra) = 0;
328329
329330 // / @brief Stop a currently executing motion plan.
330331 // / @param component_name the component of the currently executing plan to stop.
331- inline void stop_plan (const Name & component_name) {
332+ inline void stop_plan (const std::string & component_name) {
332333 return stop_plan (component_name, {});
333334 }
334335
335336 // / @brief Stop a currently executing motion plan.
336337 // / @param component_name the component of the currently executing plan to stop.
337338 // / @param extra Any additional arguments to the method.
338- virtual void stop_plan (const Name & component_name, const ProtoStruct& extra) = 0;
339+ virtual void stop_plan (const std::string & component_name, const ProtoStruct& extra) = 0;
339340
340341 // / @brief Returns the plan and state history of the most recent execution to move a component.
341342 // / Returns a result if the last execution is still executing, or changed state within the last
342343 // / 24 hours without an intervening robot reinitialization.
343344 // / @param component_name The name of the component which the MoveOnGlobe request asked to move.
344345 // / @return the plan and status of the most recent execution to move the requested component
345- inline plan_with_status get_latest_plan (const Name & component_name) {
346+ inline plan_with_status get_latest_plan (const std::string & component_name) {
346347 return get_latest_plan (component_name, {});
347348 }
348349
@@ -352,7 +353,7 @@ class Motion : public Service {
352353 // / @param component_name The name of the component which the MoveOnGlobe request asked to move.
353354 // / @param extra Any additional arguments to the method.
354355 // / @return the plan and status of the most recent execution to move the requested component
355- virtual plan_with_status get_latest_plan (const Name & component_name,
356+ virtual plan_with_status get_latest_plan (const std::string & component_name,
356357 const ProtoStruct& extra) = 0;
357358
358359 // / @brief Returns the plan, state history, and replan history of the most recent execution to
@@ -362,7 +363,7 @@ class Motion : public Service {
362363 // / @return a pair of (1) the plan and status and (2) the replan history of the most recent
363364 // / execution to move the requested component
364365 inline std::pair<plan_with_status, std::vector<plan_with_status>>
365- get_latest_plan_with_replan_history (Name component_name) {
366+ get_latest_plan_with_replan_history (const std::string& component_name) {
366367 return get_latest_plan_with_replan_history (component_name, {});
367368 }
368369
@@ -374,15 +375,17 @@ class Motion : public Service {
374375 // / @return a pair of (1) the plan and status and (2) the replan history of the most recent
375376 // / execution to move the requested component
376377 virtual std::pair<plan_with_status, std::vector<plan_with_status>>
377- get_latest_plan_with_replan_history (const Name& component_name, const ProtoStruct& extra) = 0 ;
378+ get_latest_plan_with_replan_history (const std::string& component_name,
379+ const ProtoStruct& extra) = 0 ;
378380
379381 // / @brief Returns the plan and state history of the requested plan. Returns a result
380382 // / if the last execution is still executing, or changed state within the last 24 hours
381383 // / without an intervening robot reinitialization.
382384 // / @param component_name The name of the component which the MoveOnGlobe request asked to move.
383385 // / @param execution_id The execution id of the requested plan.
384386 // / @return the plan and status of the requested execution's move the requested component
385- inline plan_with_status get_plan (const Name& component_name, const std::string& execution_id) {
387+ inline plan_with_status get_plan (const std::string& component_name,
388+ const std::string& execution_id) {
386389 return get_plan (component_name, execution_id, {});
387390 }
388391
@@ -393,7 +396,7 @@ class Motion : public Service {
393396 // / @param execution_id The execution id of the requested plan.
394397 // / @param extra Any additional arguments to the method.
395398 // / @return the plan and status of the requested execution's move the requested component
396- virtual plan_with_status get_plan (const Name & component_name,
399+ virtual plan_with_status get_plan (const std::string & component_name,
397400 const std::string& execution_id,
398401 const ProtoStruct& extra) = 0;
399402
@@ -405,7 +408,7 @@ class Motion : public Service {
405408 // / @return a pair of (1) the plan and status and (2) the replan history of the most recent
406409 // / execution to move the requested component
407410 inline std::pair<plan_with_status, std::vector<plan_with_status>> get_plan_with_replan_history (
408- const Name & component_name, const std::string& execution_id) {
411+ const std::string & component_name, const std::string& execution_id) {
409412 return get_plan_with_replan_history (component_name, execution_id, {});
410413 }
411414
@@ -418,7 +421,9 @@ class Motion : public Service {
418421 // / @return a pair of (1) the plan and status and (2) the replan history of the most recent
419422 // / execution to move the requested component
420423 virtual std::pair<plan_with_status, std::vector<plan_with_status>> get_plan_with_replan_history (
421- const Name& component_name, const std::string& execution_id, const ProtoStruct& extra) = 0;
424+ const std::string& component_name,
425+ const std::string& execution_id,
426+ const ProtoStruct& extra) = 0;
422427
423428 // / @brief Returns the status of plans created by MoveOnGlobe requests.
424429 // / Includes statuses of plans that are executing, or are part of an executing that changed
0 commit comments