Skip to content

Commit 5bb9bc6

Browse files
committed
set translation in animated_urdf
1 parent 696d9eb commit 5bb9bc6

File tree

1 file changed

+2
-0
lines changed
  • examples/rust/animated_urdf/src

1 file changed

+2
-0
lines changed

examples/rust/animated_urdf/src/main.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ struct Args {
1212
rerun: rerun::clap::RerunArgs,
1313
}
1414

15+
use rerun::components::Translation3D;
1516
use rerun::external::re_data_loader::UrdfTree;
1617
use rerun::external::{re_log, urdf_rs};
1718

@@ -56,6 +57,7 @@ fn run(rec: &rerun::RecordingStream, _args: &Args) -> anyhow::Result<()> {
5657
fixed_axis,
5758
dynamic_angle as f32,
5859
))
60+
.with_translation(Translation3D::from(joint.origin.xyz.0))
5961
.with_parent_frame(joint.parent.link.clone())
6062
.with_child_frame(joint.child.link.clone()),
6163
)?;

0 commit comments

Comments
 (0)