Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UR5 not displaying in Rviz - Training 3.1 Workcell XACRO #395

Open
lucasbrodo opened this issue May 29, 2023 · 5 comments
Open

UR5 not displaying in Rviz - Training 3.1 Workcell XACRO #395

lucasbrodo opened this issue May 29, 2023 · 5 comments

Comments

@lucasbrodo
Copy link

Hello,

I'm following in order the training tutorials but I'm encountering a problem in tutorial 3.1 - Workcell XACRO. The UR5 robot is not represented even if everything works with TF after I run the final command ros2 launch myworkcell_support urdf.launch.py (see picture below).

Screenshot 2023-05-29 235544

Did I miss something ?

Thank you very much for your help and for all the great training material.

Best,

Lucas

@marip8
Copy link
Member

marip8 commented May 30, 2023

Can you post the terminal output for this issue?

@lucasbrodo
Copy link
Author

Hi @marip8,

image

Since I have a german locale setting, I tried the recommended export LC_NUMERIC="en_US.UTF-8" (ros-industrial/universal_robot#374 (comment)) but it does not seem to work.

@marip8
Copy link
Member

marip8 commented May 30, 2023

Interesting; usually when the mesh models don't show up, it's because the package URI's can't be resolved (sometimes because the repo wasn't sourced correctly), but that doesn't seem to be the case here. Have you set your ROS_DOMAIN_ID or ROS_LOCALHOST_ONLY environment variables? Sometimes I see weird behavior like this when multiple people are running ROS2 systems simultaneously on the same network. If you don't want to set those variables, you could also disconnect from LAN/WAN and try running this launch file again

@lucasbrodo
Copy link
Author

Hi @marip8, I have tried setting the ROS_DOMAIN_ID and ROS_LOCALHOST_ONLY but it does not change the output. Neither disconnecting the LAN/WAN.
Do you have any other ideas ?
Thank you for your help

@marip8
Copy link
Member

marip8 commented May 30, 2023

Just to be clear, ROS_DOMAIN_ID needs to be set to a "unique" number between 0 and 101 per here and ROS_LOCALHOST_ONLY needs to be set to 1, rather than just setting the variables without values. Assuming you set these correctly, I would check the size of the meshes. Sometimes the scale is wrong (inches vs m, or mm vs m), so they load correctly but they are either too large or too small to see. Other than that, I would check through the robot model display to make sure it's not reporting any sort of issue. You could also check that your terminal knows the location of the package from which the meshes are being pulled (presumably ur_description)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants