@@ -92,7 +92,7 @@ void log_imu(
9292 const rerun::RecordingStream& rec, const std::string& entity_path,
9393 const sensor_msgs::msg::Imu::ConstSharedPtr& msg
9494) {
95- rec.set_time_seconds (
95+ rec.set_time_timestamp_secs_since_epoch (
9696 " timestamp" ,
9797 rclcpp::Time (msg->header .stamp .sec , msg->header .stamp .nanosec ).seconds ()
9898 );
@@ -106,7 +106,7 @@ void log_image(
106106 const rerun::RecordingStream& rec, const std::string& entity_path,
107107 const sensor_msgs::msg::Image::ConstSharedPtr& msg, const ImageOptions& options
108108) {
109- rec.set_time_seconds (
109+ rec.set_time_timestamp_secs_since_epoch (
110110 " timestamp" ,
111111 rclcpp::Time (msg->header .stamp .sec , msg->header .stamp .nanosec ).seconds ()
112112 );
@@ -144,7 +144,7 @@ void log_pose_stamped(
144144 const rerun::RecordingStream& rec, const std::string& entity_path,
145145 const geometry_msgs::msg::PoseStamped::ConstSharedPtr& msg
146146) {
147- rec.set_time_seconds (
147+ rec.set_time_timestamp_secs_since_epoch (
148148 " timestamp" ,
149149 rclcpp::Time (msg->header .stamp .sec , msg->header .stamp .nanosec ).seconds ()
150150 );
@@ -192,7 +192,7 @@ void log_tf_message(
192192 continue ;
193193 }
194194
195- rec.set_time_seconds (
195+ rec.set_time_timestamp_secs_since_epoch (
196196 " timestamp" ,
197197 rclcpp::Time (transform.header .stamp .sec , transform.header .stamp .nanosec ).seconds ()
198198 );
@@ -220,7 +220,7 @@ void log_odometry(
220220 const rerun::RecordingStream& rec, const std::string& entity_path,
221221 const nav_msgs::msg::Odometry::ConstSharedPtr& msg
222222) {
223- rec.set_time_seconds (
223+ rec.set_time_timestamp_secs_since_epoch (
224224 " timestamp" ,
225225 rclcpp::Time (msg->header .stamp .sec , msg->header .stamp .nanosec ).seconds ()
226226 );
@@ -270,7 +270,7 @@ void log_transform(
270270 const rerun::RecordingStream& rec, const std::string& entity_path,
271271 const geometry_msgs::msg::TransformStamped::ConstSharedPtr& msg
272272) {
273- rec.set_time_seconds (
273+ rec.set_time_timestamp_secs_since_epoch (
274274 " timestamp" ,
275275 rclcpp::Time (msg->header .stamp .sec , msg->header .stamp .nanosec ).seconds ()
276276 );
@@ -297,7 +297,7 @@ void log_point_cloud2(
297297 const rerun::RecordingStream& rec, const std::string& entity_path,
298298 const sensor_msgs::msg::PointCloud2::ConstSharedPtr& msg, const PointCloud2Options& options
299299) {
300- rec.set_time_seconds (
300+ rec.set_time_timestamp_secs_since_epoch (
301301 " timestamp" ,
302302 rclcpp::Time (msg->header .stamp .sec , msg->header .stamp .nanosec ).seconds ()
303303 );
@@ -411,7 +411,7 @@ void log_joint_state(
411411) {
412412 // Set timestamp if available, otherwise skip timestamp logging to use current time
413413 if (msg->header .stamp .sec != 0 || msg->header .stamp .nanosec != 0 ) {
414- rec.set_time_seconds (
414+ rec.set_time_timestamp_secs_since_epoch (
415415 " timestamp" ,
416416 rclcpp::Time (msg->header .stamp .sec , msg->header .stamp .nanosec ).seconds ()
417417 );
0 commit comments