ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Unable to make the robot reach a speed greater than 0.5 while using Regulated pursuit planner.

asked 2023-04-17 04:19:46 -0500

ygv10 gravatar image

I am running ros2 humble with nav2. Setting the desired_vel > 0.5 does not seem to have any effect on speed and linear velocity is restricted to 0.5. Values less than 0.5 work correctly and as expected.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2023-04-21 03:48:20 -0500

ygv10 gravatar image

So I found the solution myself. Rpp was sending its cmd_vel to velocity_smoother which had a cap of 0.5 by default. Increasing that fixed my problem.

edit flag offensive delete link more

Comments

can you please show me how is it done? thank you very much in advance

jiahao23 gravatar image jiahao23  ( 2023-04-21 21:56:36 -0500 )edit

add this to nav2_params

velocity_smoother: ros__parameters: smoothing_frequency: 20.0 scale_velocities: false feedback: "OPEN_LOOP" max_velocity: [1.25, 0.0, 1.0] min_velocity: [-1.25, 0.0, -1.0] deadband_velocity: [0.0, 0.0, 0.0] velocity_timeout: 1.0 max_accel: [1.0, 0.0, 1.25] max_decel: [-1.0, 0.0, -1.25] odom_topic: "odometry/filtered" odom_duration: 0.1

ygv10 gravatar image ygv10  ( 2023-04-23 05:57:23 -0500 )edit

Do i add it anywhere in the file or does it have to below another server? e.g. controller server Thank you very much!

jiahao23 gravatar image jiahao23  ( 2023-04-23 21:48:39 -0500 )edit
1

It worked! thank you so much kind sir

jiahao23 gravatar image jiahao23  ( 2023-04-23 21:55:49 -0500 )edit

Question Tools

Stats

Asked: 2023-04-17 04:19:46 -0500

Seen: 181 times

Last updated: Apr 21 '23