Skip to content

Commit

Permalink
Updated navigateTo interface (#487)
Browse files Browse the repository at this point in the history
Co-authored-by: Dan Rosenstein <danrose_microsoft>
Co-authored-by: Tiffany Cappellari <156013635+tcappellari-bdai@users.noreply.github.com>
  • Loading branch information
IoTDan and tcappellari-bdai authored Sep 26, 2024
1 parent 8b43c81 commit 656c900
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
5 changes: 1 addition & 4 deletions spot_driver/spot_driver/spot_ros2.py
Original file line number Diff line number Diff line change
Expand Up @@ -2842,10 +2842,7 @@ def handle_navigate_to(self, goal_handle: ServerGoalHandle) -> NavigateTo.Result

# run navigate_to
resp = self.spot_wrapper.spot_graph_nav._navigate_to(
upload_path=goal_handle.request.upload_path,
navigate_to=goal_handle.request.navigate_to,
initial_localization_fiducial=goal_handle.request.initial_localization_fiducial,
initial_localization_waypoint=goal_handle.request.initial_localization_waypoint,
waypoint_id=goal_handle.request.waypoint_id,
)
self.run_navigate_to = False
feedback_thread.join()
Expand Down
7 changes: 2 additions & 5 deletions spot_msgs/action/NavigateTo.action
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
string upload_path # Absolute path to map_directory, which is downloaded from tablet controller
string navigate_to # Waypoint id string for where to go
bool initial_localization_fiducial # Tells the initializer whether to use fiducials
string initial_localization_waypoint # Waypoint id to trigger localization
string waypoint_id # waypoint ID to navigate to
---
bool success # indicate successful run of triggered service
string message # informational, e.g. for error messages
---
string waypoint_id
string waypoint_id

0 comments on commit 656c900

Please sign in to comment.