Skip to content

Commit

Permalink
Update diff_drive_controller/src/diff_drive_controller.cpp `get_clock…
Browse files Browse the repository at this point in the history
…()->now()` to `->now()`

Co-authored-by: Sai Kishor Kothakota <[email protected]>
  • Loading branch information
arthurlovekin and saikishor authored Jan 21, 2025
1 parent 794b77c commit f795b62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion diff_drive_controller/src/diff_drive_controller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ controller_interface::CallbackReturn DiffDriveController::on_configure(
get_node()->get_logger(),
"Received TwistStamped with zero timestamp, setting it to current "
"time, this message will only be shown once");
msg->header.stamp = get_node()->get_clock()->now();
msg->header.stamp = get_node()->now();
}

const auto current_time_diff = get_node()->now() - msg->header.stamp;
Expand Down

0 comments on commit f795b62

Please sign in to comment.