Browse Source

Fix base_link and always revert to world if there is no parent

tags/v0.3.12-rc0
haixuantao 7 months ago
parent
commit
0fcb3d8312
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      node-hub/dora-rerun/src/urdf.rs

+ 1
- 2
node-hub/dora-rerun/src/urdf.rs View File

@@ -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")?


Loading…
Cancel
Save