Skip to content

How to impove the running speed of robot? #952

Closed

Description

@MengNan-Li

Bug report

Required Info:

  • Operating System:
    • Ubuntu 18.04
  • Installation type:
    • binaries
  • Version or commit hash:
  • DDS implementation:
    • OpenSplice
  • Client library (if applicable):

Steps to reproduce issue

1. Start robot driver
2. ros2 launch nav2_bringup nav2_bringup_launch.py ...

Expected behavior

The moving speed of robot adjusts with parameter adjustment.

Actual behavior

The robot moves at a slower speed and the line speed is about 0.4m/s.

Additional information

I adjust the max_vel_ params of dwb_controller, but the running speed of robot is still slow.
dwb_controller:
ros__parameters:
use_sim_time: True
debug_trajectory_details: True
min_vel_x: 0.0
min_vel_y: 0.0
max_vel_x: 0.9
max_vel_y: 0.0
max_vel_theta: 1.0
min_speed_xy: 0.0
max_speed_xy: 0.9
min_speed_theta: 0.0


Feature request

Feature description

Implementation considerations

Activity

  1. SteveMacenski commented on Jul 19, 2019

    @SteveMacenski
    Member

    Did you check the settings on your velocity smoother or anything downstream of the stack to make sure its the stack’s fault? This sounds like maybe a limit was put in downstream on a smoother or on the hardware

  2. ghost added
    1 - High
    on Jul 19, 2019
  3. ghost added this to the July 2019 milestone on Jul 19, 2019
  4. MengNan-Li commented on Jul 22, 2019

    @MengNan-Li
    Author

    I want to know what the name of the controller_frequency parameter of DWA in ROS1 is in ROS2. After changing the code below, we can adjust the movement speed of the robot by parameters.

    nav2_dwb_controller/dwb_plugins/src/standard_traj_generator.cpp
    void StandardTrajectoryGenerator::startNewIteration(
      const nav_2d_msgs::msg::Twist2D & current_velocity)
    {
      // velocity_iterator_->startNewIteration(current_velocity, sim_time_);
      velocity_iterator_->startNewIteration(current_velocity, 0.1);
    }
    
  5. ghost
    self-assigned this
    on Jul 22, 2019
  6. MengNan-Li commented on Jul 25, 2019

    @MengNan-Li
    Author

    @crdelsey I just changed the one line code. Other sim_time_ values are still set in the default nav2_params.yaml file.

  7. ghost removed this from the July 2019 milestone on Jul 29, 2019
  8. ghost added this to the Aug 2019 milestone on Jul 29, 2019
  9. SteveMacenski commented on Sep 4, 2019

    @SteveMacenski
    Member

    @crdelsey @MengNan-Li can this be closed with #970 ?

  10. MengNan-Li commented on Sep 5, 2019

    @MengNan-Li
    Author

    OK

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    1 - High

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions