Skip to content

Commit 9ff3a76

Browse files
committed
Removed unused code
1 parent 4adb592 commit 9ff3a76

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

steering_controllers_library/src/steering_controllers_library.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -631,13 +631,6 @@ controller_interface::return_type SteeringControllersLibrary::update_and_write_c
631631

632632
if (!std::isnan(reference_interfaces_[0]) && !std::isnan(reference_interfaces_[1]))
633633
{
634-
const auto age_of_last_command = params_.use_twist_input
635-
? time - current_ref_twist_.header.stamp
636-
: time - current_ref_steering_.header.stamp;
637-
638-
const auto timeout =
639-
age_of_last_command > ref_timeout_ && ref_timeout_ != rclcpp::Duration::from_seconds(0);
640-
641634
auto [traction_commands, steering_commands] = odometry_.get_commands(
642635
reference_interfaces_[0], reference_interfaces_[1], params_.open_loop,
643636
params_.reduce_wheel_speed_until_steering_reached, params_.use_twist_input);

0 commit comments

Comments
 (0)