From a16b7a70613c322416de29b9e1fc90216720f403 Mon Sep 17 00:00:00 2001 From: "Dr. Denis" Date: Wed, 1 Jan 2025 19:30:33 +0100 Subject: [PATCH] Update steering_controllers_library/src/steering_controllers_library.cpp --- .../src/steering_controllers_library.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/steering_controllers_library/src/steering_controllers_library.cpp b/steering_controllers_library/src/steering_controllers_library.cpp index a0b0d2f668..c71c634266 100644 --- a/steering_controllers_library/src/steering_controllers_library.cpp +++ b/steering_controllers_library/src/steering_controllers_library.cpp @@ -383,8 +383,8 @@ controller_interface::return_type SteeringControllersLibrary::update_and_write_c age_of_last_command > ref_timeout_ && ref_timeout_ != rclcpp::Duration::from_seconds(0); // store (for open loop odometry) and set commands - last_linear_velocity_ = timeout ? 0. : reference_interfaces_[0]; - last_angular_velocity_ = timeout ? 0. : reference_interfaces_[1]; + last_linear_velocity_ = timeout ? 0.0 : reference_interfaces_[0]; + last_angular_velocity_ = timeout ? 0.0 : reference_interfaces_[1]; auto [traction_commands, steering_commands] = odometry_.get_commands( reference_interfaces_[0], reference_interfaces_[1], params_.open_loop,