-
Notifications
You must be signed in to change notification settings - Fork 467
Closed
Labels
Description
Describe the bug
The open_loop mode of the steering controllers library is not working.
To Reproduce
Steps to reproduce the behavior:
- Checkout the CarLike demo [Example 11] Carlike Robot using Bicycle Steering Controller ros2_control_demos#316
- Set the
open_loopparameter to true - Check the results, the robot is not moving.
Expected behavior
Ideal odometry
Environment (please complete the following information):
- Version : Rolling
Additional context
I think the issue is that the variables here are never set
Lines 135 to 137 in f7c13ad
| // store last velocity | |
| double last_linear_velocity_ = 0.0; | |
| double last_angular_velocity_ = 0.0; |
but used here
ros2_controllers/ackermann_steering_controller/src/ackermann_steering_controller.cpp
Line 61 in f7c13ad
| odometry_.update_open_loop(last_linear_velocity_, last_angular_velocity_, period.seconds()); |
| odometry_.update_open_loop(last_linear_velocity_, last_angular_velocity_, period.seconds()); |
ros2_controllers/tricycle_steering_controller/src/tricycle_steering_controller.cpp
Line 59 in f7c13ad
| odometry_.update_open_loop(last_linear_velocity_, last_angular_velocity_, period.seconds()); |
Reactions are currently unavailable