We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent da13d7a commit 2c9717aCopy full SHA for 2c9717a
steering_controllers_library/src/steering_controllers_library.cpp
@@ -582,9 +582,13 @@ controller_interface::return_type SteeringControllersLibrary::update_reference_f
582
controller_interface::return_type SteeringControllersLibrary::update_and_write_commands(
583
const rclcpp::Time & time, const rclcpp::Duration & period)
584
{
585
- update_odometry(period);
586
auto logger = get_node()->get_logger();
587
+ // store current ref (for open loop odometry) and update odometry
588
+ last_linear_velocity_ = reference_interfaces_[0];
589
+ last_angular_velocity_ = reference_interfaces_[1];
590
+ update_odometry(period);
591
+
592
// MOVE ROBOT
593
594
// Limit velocities and accelerations:
0 commit comments