@@ -117,8 +117,8 @@ void log_image(
117
117
rec.log (
118
118
entity_path,
119
119
rerun::DepthImage (
120
- { static_cast < size_t >(img. rows ), static_cast < size_t >(img. cols )} ,
121
- rerun::TensorBuffer::u16 (img)
120
+ img_data_as_collection< uint16_t >(img) ,
121
+ { static_cast < size_t > (img. rows ), static_cast < size_t >(img. cols )}
122
122
)
123
123
.with_meter (1000 )
124
124
);
@@ -133,14 +133,14 @@ void log_image(
133
133
rec.log (
134
134
entity_path,
135
135
rerun::DepthImage (
136
- { static_cast < size_t >(img. rows ), static_cast < size_t >(img. cols )} ,
137
- rerun::TensorBuffer::f32 (img)
136
+ img_data_as_collection< float >(img) ,
137
+ { static_cast < size_t > (img. rows ), static_cast < size_t >(img. cols )}
138
138
)
139
139
.with_meter (1.0 )
140
140
);
141
141
} else {
142
142
cv::Mat img = cv_bridge::toCvCopy (msg, " rgb8" )->image ;
143
- rec.log (entity_path, rerun::Image ( tensor_shape (img), rerun::TensorBuffer::u8 (img)));
143
+ rec.log (entity_path, rerun::Image::from_rgb24 (img_data_as_collection< uint8_t > (img), width_height (img)));
144
144
}
145
145
}
146
146
@@ -156,7 +156,7 @@ void log_pose_stamped(
156
156
rec.log (
157
157
entity_path,
158
158
rerun::Transform3D (
159
- rerun::Vector3D (msg->pose .position .x , msg->pose .position .y , msg->pose .position .z ),
159
+ rerun::components::Translation3D (msg->pose .position .x , msg->pose .position .y , msg->pose .position .z ),
160
160
rerun::Quaternion::from_wxyz (
161
161
msg->pose .orientation .w ,
162
162
msg->pose .orientation .x ,
@@ -200,7 +200,7 @@ void log_tf_message(
200
200
rec.log (
201
201
tf_frame_to_entity_path.at (transform.child_frame_id ),
202
202
rerun::Transform3D (
203
- rerun::Vector3D (
203
+ rerun::components::Translation3D (
204
204
transform.transform .translation .x ,
205
205
transform.transform .translation .y ,
206
206
transform.transform .translation .z
@@ -228,7 +228,7 @@ void log_odometry(
228
228
rec.log (
229
229
entity_path,
230
230
rerun::Transform3D (
231
- rerun::Vector3D (
231
+ rerun::components::Translation3D (
232
232
msg->pose .pose .position .x ,
233
233
msg->pose .pose .position .y ,
234
234
msg->pose .pose .position .z
@@ -278,7 +278,7 @@ void log_transform(
278
278
rec.log (
279
279
entity_path,
280
280
rerun::Transform3D (
281
- rerun::Vector3D (
281
+ rerun::components::Translation3D (
282
282
msg->transform .translation .x ,
283
283
msg->transform .translation .y ,
284
284
msg->transform .translation .z
0 commit comments