Skip to content

Steering controllers library open_loop mode #784

@christophfroehlich

Description

@christophfroehlich

Describe the bug
The open_loop mode of the steering controllers library is not working.

To Reproduce
Steps to reproduce the behavior:

  1. Checkout the CarLike demo [Example 11] Carlike Robot using Bicycle Steering Controller ros2_control_demos#316
  2. Set the open_loop parameter to true
  3. 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

// store last velocity
double last_linear_velocity_ = 0.0;
double last_angular_velocity_ = 0.0;

but used here
odometry_.update_open_loop(last_linear_velocity_, last_angular_velocity_, period.seconds());

odometry_.update_open_loop(last_linear_velocity_, last_angular_velocity_, period.seconds());

odometry_.update_open_loop(last_linear_velocity_, last_angular_velocity_, period.seconds());

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions