Skip to content

Commit 697523f

Browse files
committed
restore old logging
1 parent ec8c1f7 commit 697523f

File tree

1 file changed

+3
-24
lines changed

1 file changed

+3
-24
lines changed

rerun_bridge/src/rerun_bridge/rerun_ros_interface.cpp

Lines changed: 3 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -97,31 +97,10 @@ void log_imu(
9797
"timestamp",
9898
rclcpp::Time(msg->header.stamp.sec, msg->header.stamp.nanosec).seconds()
9999
);
100+
rec.log(entity_path + "/x", rerun::Scalars(msg->linear_acceleration.x));
101+
rec.log(entity_path + "/y", rerun::Scalars(msg->linear_acceleration.y));
102+
rec.log(entity_path + "/z", rerun::Scalars(msg->linear_acceleration.z));
100103

101-
rec.log(
102-
entity_path + "/x",
103-
rerun::Scalars(
104-
rerun::Collection<rerun::components::Scalar>::take_ownership(
105-
{rerun::components::Scalar(msg->linear_acceleration.x)}
106-
)
107-
)
108-
);
109-
rec.log(
110-
entity_path + "/y",
111-
rerun::Scalars(
112-
rerun::Collection<rerun::components::Scalar>::take_ownership(
113-
{rerun::components::Scalar(msg->linear_acceleration.y)}
114-
)
115-
)
116-
);
117-
rec.log(
118-
entity_path + "/z",
119-
rerun::Scalars(
120-
rerun::Collection<rerun::components::Scalar>::take_ownership(
121-
{rerun::components::Scalar(msg->linear_acceleration.z)}
122-
)
123-
)
124-
);
125104
}
126105

127106
void log_image(

0 commit comments

Comments
 (0)