Skip to content

Commit

Permalink
pass rcl_time_point_value_t to rcl_clock_get_now
Browse files Browse the repository at this point in the history
  • Loading branch information
dirk-thomas committed Jul 24, 2018
1 parent 2e41fb1 commit 1f0112d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rclcpp/src/rclcpp/clock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ Clock::now()
{
Time now(0, 0, rcl_clock_.type);

auto ret = rcl_clock_get_now(&rcl_clock_, &now.rcl_time_);
auto ret = rcl_clock_get_now(&rcl_clock_, &now.rcl_time_.nanoseconds);
if (ret != RCL_RET_OK) {
rclcpp::exceptions::throw_from_rcl_error(
ret, "could not get current time stamp");
Expand Down

0 comments on commit 1f0112d

Please sign in to comment.