Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Acceleration behaviour #21

Open
jmartherose-aldebaran opened this issue Sep 2, 2024 · 2 comments
Open

Acceleration behaviour #21

jmartherose-aldebaran opened this issue Sep 2, 2024 · 2 comments

Comments

@jmartherose-aldebaran
Copy link

Hello,

We've been using the swd_ros2_controller to run our robot equipped with two (left and right) ezWheels with ROS2, and we're observing a behavior where it appears that the time to reach a given speed is constant, no matter the final speed we're trying to achieve, rather than being dependent on time.

For example:

  • if we're trying to go at 0.5m/second, the robot will take ~7 second to reach the target speed
  • if we're trying to go at 1.5m/second, the robot will take ~7 second to reach the target speed

Is it possible to change it so that instead, we'd have something like:

  • if we're trying to go at 0.5m/second, the robot will take ~3.5 seconds to reach the target speed
  • if we're trying to go at 1m/second, the robot will take ~7 seconds to reach the target speed

(Which I IIRC is the default behavior expected by ROS navigation-related plugins)

The parameters related to the velocity mode / ramp behavior have been left to default because we're unsure on how to modify them.

Thank you for your help.

@ez-Support
Copy link
Collaborator

ez-Support commented Sep 6, 2024

Hello,

According to your SWD gear ratio .4,
You can test to decrease the acceleration ramps as follow, so the robot will accelerate more slowly:

vl_acc_delta_speed = 100  # 1500
vl_dec_delta_speed = 500  # 1500 (For decelleration, maybe you leave them as they were)

For both wheels in the commissioning:
https://github.com/ezWheelSAS/swd-starter-kit-config/blob/main/commissioning/swd_left_4_commissioning.py#L95
https://github.com/ezWheelSAS/swd-starter-kit-config/blob/main/commissioning/swd_right_5_commissioning.py#L95

@jmartherose-aldebaran
Copy link
Author

Thank you for the answer, I will try these parameters ASAP and report back here with the results.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants