Skip to content

Commit

Permalink
[spot_basic_behaviors] set limit to rosparam
Browse files Browse the repository at this point in the history
  • Loading branch information
sktometometo committed Nov 22, 2023
1 parent 42f895f commit 6f80bd4
Showing 1 changed file with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,19 @@ def run_main(self, start_node, end_node, edge, pre_edge):
# start navigation
success = False
rate = rospy.Rate(10)
velocity_limit_linear_x = rospy.get_param('/spot_basic_behaviors/walk_behaviors/velocity_limit_linear_x', None)
velocity_limit_linear_y = rospy.get_param('/spot_basic_behaviors/walk_behaviors/velocity_limit_linear_y', None)
velocity_limit_angular_z = rospy.get_param('/spot_basic_behaviors/walk_behaviors/velocity_limit_angular_z', None)
if not self.silent_mode:
self.sound_client.say('移動します', blocking=True)
self.spot_client.navigate_to(end_id, velocity_limit=(0.2, 0.2, 0.1), blocking=False)
self.spot_client.navigate_to(
end_id,
velocity_limit=(
velocity_limit_linear_x,
velocity_limit_linear_y,
velocity_limit_angular_z
),
blocking=False)
while not rospy.is_shutdown():
rate.sleep()
if self.spot_client.wait_for_navigate_to_result(rospy.Duration(0.1)):
Expand Down

0 comments on commit 6f80bd4

Please sign in to comment.