We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cd6823b commit 441f2b2Copy full SHA for 441f2b2
steering_controllers_library/src/steering_controllers_library.cpp
@@ -517,9 +517,13 @@ controller_interface::return_type SteeringControllersLibrary::update_reference_f
517
controller_interface::return_type SteeringControllersLibrary::update_and_write_commands(
518
const rclcpp::Time & time, const rclcpp::Duration & period)
519
{
520
- update_odometry(period);
521
auto logger = get_node()->get_logger();
522
+ // store current ref (for open loop odometry) and update odometry
523
+ last_linear_velocity_ = reference_interfaces_[0];
524
+ last_angular_velocity_ = reference_interfaces_[1];
525
+ update_odometry(period);
526
+
527
// MOVE ROBOT
528
529
// Limit velocities and accelerations:
0 commit comments