ms-iot / vscode-ros

Visual Studio Code extension for Robot Operating System (ROS) development
https://marketplace.visualstudio.com/items?itemName=ms-iot.vscode-ros
MIT License
405 stars 93 forks source link

[bug] Incorrect urdf preview with the v0.9.4 pre-release version #1065

Open zichunxx opened 1 year ago

zichunxx commented 1 year ago

(Please add appropriate labels)

v0.9.4 pre-release

Version: 1.80.1
Commit: 74f6148eb9ea00507ec113ec51c489d6ffb4b771
Date: 2023-07-12T17:22:25.257Z
Electron: 22.3.14
ElectronBuildId: 21893604
Chromium: 108.0.5359.215
Node.js: 16.17.1
V8: 10.8.168.25-electron.0
OS: Linux x64 5.15.0-76-generic snap

what is the bug

Incorrect preview for Kuka arm. Cannot see the arm with right color and model. Screenshot 2023-07-18 20:09:47

Repro steps

  1. git clone https://github.com/ros-industrial/kuka_experimental.git
  2. preview kuka_lbr_iiwa_support/urdf/lbr_iiwa_14_r820.urdf

expected behavior

Screenshot 2023-07-18 20:12:47

brennand commented 1 year ago

I'm also having the same problem with the franka_panda arm. I'm using:

ubuntu 22.04
ROS2 humble.
v0.9.4 pre-release

https://github.com/NVIDIA-Omniverse/IsaacGymEnvs/blob/main/assets/urdf/franka_description/robots/franka_panda.urdf

I had to add a world link and base_link:


  <link name="world"/>
  <joint name="world" type="fixed">
    <parent link="world"/>
    <child link="base_link"/>    
  </joint>
  <link name="base_link"/>
  <joint name="base_joint" type="fixed">
    <parent link="base_link"/>
    <child link="panda_link0"/>    
  </joint>

Will there be a way to specify the base link?

Screenshot from 2023-08-01 11-44-17