From 47ace0e87f3b5aaaedc0d6c4ad2ae55e8e9a5cfa Mon Sep 17 00:00:00 2001 From: Koki Shinjo Date: Fri, 10 Nov 2023 15:33:29 +0900 Subject: [PATCH] [spot_ros_client] add default limit to navigate_to --- .../spot_ros_client/src/spot_ros_client/libspotros.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/jsk_spot_robot/spot_ros_client/src/spot_ros_client/libspotros.py b/jsk_spot_robot/spot_ros_client/src/spot_ros_client/libspotros.py index 3041e822d0..3daaf9e6dc 100644 --- a/jsk_spot_robot/spot_ros_client/src/spot_ros_client/libspotros.py +++ b/jsk_spot_robot/spot_ros_client/src/spot_ros_client/libspotros.py @@ -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()