File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
steering_controllers_library
include/steering_controllers_library Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -76,7 +76,8 @@ class SteeringControllersLibrary : public controller_interface::ChainableControl
76
76
const rclcpp_lifecycle::State & previous_state) override ;
77
77
78
78
STEERING_CONTROLLERS__VISIBILITY_PUBLIC controller_interface::return_type
79
- update_reference_from_subscribers () override ;
79
+ update_reference_from_subscribers (
80
+ const rclcpp::Time & time, const rclcpp::Duration & period) override ;
80
81
81
82
STEERING_CONTROLLERS__VISIBILITY_PUBLIC controller_interface::return_type
82
83
update_and_write_commands (const rclcpp::Time & time, const rclcpp::Duration & period) override ;
Original file line number Diff line number Diff line change @@ -411,10 +411,11 @@ controller_interface::CallbackReturn SteeringControllersLibrary::on_deactivate(
411
411
return controller_interface::CallbackReturn::SUCCESS;
412
412
}
413
413
414
- controller_interface::return_type SteeringControllersLibrary::update_reference_from_subscribers ()
414
+ controller_interface::return_type SteeringControllersLibrary::update_reference_from_subscribers (
415
+ const rclcpp::Time & time, const rclcpp::Duration & period)
415
416
{
416
417
auto current_ref = *(input_ref_.readFromRT ());
417
- const auto age_of_last_command = get_node ()-> now () - (current_ref)->header .stamp ;
418
+ const auto age_of_last_command = time - (current_ref)->header .stamp ;
418
419
419
420
// send message only if there is no timeout
420
421
if (age_of_last_command <= ref_timeout_ || ref_timeout_ == rclcpp::Duration::from_seconds (0 ))
You can’t perform that action at this time.
0 commit comments