diff --git a/node-hub/dora-rerun/src/urdf.rs b/node-hub/dora-rerun/src/urdf.rs index 8988d46b..0543b029 100644 --- a/node-hub/dora-rerun/src/urdf.rs +++ b/node-hub/dora-rerun/src/urdf.rs @@ -127,8 +127,7 @@ pub fn update_visualization( let link_to_world = link .world_transform() .context("Could not get world transform")?; - let link_to_parent = if link_name != "base_link" { - let parent = link.parent().context("could not get parent")?; + let link_to_parent = if let Some(parent) = link.parent() { parent .world_transform() .context("Could not get world transform")?