From 1f0112d20b41e03699bd1e90f3c468cf50802a87 Mon Sep 17 00:00:00 2001 From: Dirk Thomas Date: Tue, 24 Jul 2018 15:05:24 -0700 Subject: [PATCH] pass rcl_time_point_value_t to rcl_clock_get_now --- rclcpp/src/rclcpp/clock.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rclcpp/src/rclcpp/clock.cpp b/rclcpp/src/rclcpp/clock.cpp index 3114fa33c3..df38ec0219 100644 --- a/rclcpp/src/rclcpp/clock.cpp +++ b/rclcpp/src/rclcpp/clock.cpp @@ -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");