File tree Expand file tree Collapse file tree 1 file changed +3
-24
lines changed
rerun_bridge/src/rerun_bridge Expand file tree Collapse file tree 1 file changed +3
-24
lines changed Original file line number Diff line number Diff line change @@ -97,31 +97,10 @@ void log_imu(
97
97
" timestamp" ,
98
98
rclcpp::Time (msg->header .stamp .sec , msg->header .stamp .nanosec ).seconds ()
99
99
);
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 ));
100
103
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
- );
125
104
}
126
105
127
106
void log_image (
You can’t perform that action at this time.
0 commit comments