@@ -92,7 +92,7 @@ void log_imu(
92
92
const rerun::RecordingStream& rec, const std::string& entity_path,
93
93
const sensor_msgs::msg::Imu::ConstSharedPtr& msg
94
94
) {
95
- rec.set_time_seconds (
95
+ rec.set_time_timestamp_secs_since_epoch (
96
96
" timestamp" ,
97
97
rclcpp::Time (msg->header .stamp .sec , msg->header .stamp .nanosec ).seconds ()
98
98
);
@@ -106,7 +106,7 @@ void log_image(
106
106
const rerun::RecordingStream& rec, const std::string& entity_path,
107
107
const sensor_msgs::msg::Image::ConstSharedPtr& msg, const ImageOptions& options
108
108
) {
109
- rec.set_time_seconds (
109
+ rec.set_time_timestamp_secs_since_epoch (
110
110
" timestamp" ,
111
111
rclcpp::Time (msg->header .stamp .sec , msg->header .stamp .nanosec ).seconds ()
112
112
);
@@ -144,7 +144,7 @@ void log_pose_stamped(
144
144
const rerun::RecordingStream& rec, const std::string& entity_path,
145
145
const geometry_msgs::msg::PoseStamped::ConstSharedPtr& msg
146
146
) {
147
- rec.set_time_seconds (
147
+ rec.set_time_timestamp_secs_since_epoch (
148
148
" timestamp" ,
149
149
rclcpp::Time (msg->header .stamp .sec , msg->header .stamp .nanosec ).seconds ()
150
150
);
@@ -192,7 +192,7 @@ void log_tf_message(
192
192
continue ;
193
193
}
194
194
195
- rec.set_time_seconds (
195
+ rec.set_time_timestamp_secs_since_epoch (
196
196
" timestamp" ,
197
197
rclcpp::Time (transform.header .stamp .sec , transform.header .stamp .nanosec ).seconds ()
198
198
);
@@ -220,7 +220,7 @@ void log_odometry(
220
220
const rerun::RecordingStream& rec, const std::string& entity_path,
221
221
const nav_msgs::msg::Odometry::ConstSharedPtr& msg
222
222
) {
223
- rec.set_time_seconds (
223
+ rec.set_time_timestamp_secs_since_epoch (
224
224
" timestamp" ,
225
225
rclcpp::Time (msg->header .stamp .sec , msg->header .stamp .nanosec ).seconds ()
226
226
);
@@ -270,7 +270,7 @@ void log_transform(
270
270
const rerun::RecordingStream& rec, const std::string& entity_path,
271
271
const geometry_msgs::msg::TransformStamped::ConstSharedPtr& msg
272
272
) {
273
- rec.set_time_seconds (
273
+ rec.set_time_timestamp_secs_since_epoch (
274
274
" timestamp" ,
275
275
rclcpp::Time (msg->header .stamp .sec , msg->header .stamp .nanosec ).seconds ()
276
276
);
@@ -297,7 +297,7 @@ void log_point_cloud2(
297
297
const rerun::RecordingStream& rec, const std::string& entity_path,
298
298
const sensor_msgs::msg::PointCloud2::ConstSharedPtr& msg, const PointCloud2Options& options
299
299
) {
300
- rec.set_time_seconds (
300
+ rec.set_time_timestamp_secs_since_epoch (
301
301
" timestamp" ,
302
302
rclcpp::Time (msg->header .stamp .sec , msg->header .stamp .nanosec ).seconds ()
303
303
);
@@ -411,7 +411,7 @@ void log_joint_state(
411
411
) {
412
412
// Set timestamp if available, otherwise skip timestamp logging to use current time
413
413
if (msg->header .stamp .sec != 0 || msg->header .stamp .nanosec != 0 ) {
414
- rec.set_time_seconds (
414
+ rec.set_time_timestamp_secs_since_epoch (
415
415
" timestamp" ,
416
416
rclcpp::Time (msg->header .stamp .sec , msg->header .stamp .nanosec ).seconds ()
417
417
);
0 commit comments