Skip to content

Commit

Permalink
[spot_ros_client] add default limit to navigate_to
Browse files Browse the repository at this point in the history
  • Loading branch information
sktometometo committed Nov 22, 2023
1 parent f4719ff commit 47ace0e
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -493,13 +493,13 @@ def auto_undock(self):

def navigate_to(self,
id_navigate_to,
velocity_limit=(0.0, 0.0, 0.0),
velocity_limit=(1.0, 1.0, 1.0),
blocking=False):
goal = NavigateToGoal()
goal.id_navigate_to = id_navigate_to
goal.velocity_limit.linear.x = velocity_limit[0]
goal.velocity_limit.linear.y = velocity_limit[1]
goal.velocity_limit.angular.z = velocity_limit[2]
goal.velocity_limit.linear.x = float(velocity_limit[0])
goal.velocity_limit.linear.y = float(velocity_limit[1])
goal.velocity_limit.angular.z = float(velocity_limit[2])
self._actionclient_navigate_to.send_goal(goal)
if blocking:
self._actionclient_navigate_to.wait_for_result()
Expand Down

0 comments on commit 47ace0e

Please sign in to comment.