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

RVIZ 2 Unable to see Panda Robot model #155

Closed
scole02 opened this issue Oct 24, 2021 · 19 comments
Closed

RVIZ 2 Unable to see Panda Robot model #155

scole02 opened this issue Oct 24, 2021 · 19 comments

Comments

@scole02
Copy link

scole02 commented Oct 24, 2021

Description

Similiar to issue #108. Panda robot appears to load properly according to the logs/console, but the visual model does not appear in RVIZ.
rvis_panda_screenscap

Looking at the logs there is one Error that is displayed upon starting RVIZ:
[rviz2-1] [ERROR] [1635056199.843327629] [moveit_ros_visualization.motion_planning_frame]: Action server: /recognize_objects not available

And another Error that is displayed after choosing the MotionPlanning DisplayType as referenced in Step 1 of the tutorial.:
[move_group-4] [ERROR] [1635056172.626867175] [moveit.ros.occupancy_map_monitor] : No 3D sensor plugin(s) defined for octomap updates

Your environment

  • ROS Distro: Foxy
  • OS Version: e.g. Ubuntu 20.04 WSL2 on WIN11
  • Source or Binary build?: Binary MoveIt release, Source moveit2_tutorials
  • If binary, which release version?: MoveIt Foxy release
  • If source, which git commit or tag? moveit2_tutorials commit 2676a19

Steps to reproduce

Followed this tutorial before running the demo with:
$ ros2 launch moveit2_tutorials demo.launch.py rviz_tutorial:=true

Expected behaviour

Panda robot model mesh displays in rviz2 scene, after adding MotionPlanning display type as seen in the tutorial.

Backtrace or Console output

Console Output

@vatanaksoytezer
Copy link
Contributor

Hi @scole02 thank you for reporting your issue. Did you follow the instructions:

Once you have the Motion Planning Plugin loaded, we can configure it. In the “Global Options” tab of the “Displays” subwindow, set the Fixed Frame field to /panda_link0
Now, you can start configuring the Plugin for your robot (the Panda in this case). Click on “MotionPlanning” within “Displays”.
Make sure the Robot Description field is set to robot_description.
Make sure the Planning Scene Topic field is set to /monitored_planning_scene. Click on topic name to expose topic-name drop-down.
Make sure the Trajectory Topic under Planned Path is set to /display_planned_path.
In Planning Request, change the Planning Group to panda_arm. You can also see this in the MotionPlanning panel in the bottom left.

Does running ros2 launch moveit2_tutorials demo.launch.py brings up the robot for you?

@scole02
Copy link
Author

scole02 commented Oct 26, 2021

Hi @scole02 thank you for reporting your issue. Did you follow the instructions:

Once you have the Motion Planning Plugin loaded, we can configure it. In the “Global Options” tab of the “Displays” subwindow, set the Fixed Frame field to /panda_link0
Now, you can start configuring the Plugin for your robot (the Panda in this case). Click on “MotionPlanning” within “Displays”.
Make sure the Robot Description field is set to robot_description.
Make sure the Planning Scene Topic field is set to /monitored_planning_scene. Click on topic name to expose topic-name drop-down.
Make sure the Trajectory Topic under Planned Path is set to /display_planned_path.
In Planning Request, change the Planning Group to panda_arm. You can also see this in the MotionPlanning panel in the bottom left.

Does running ros2 launch moveit2_tutorials demo.launch.py brings up the robot for you?

After following these steps and changing the planning request to "panda_arm", there is now a sphere with a bunch of different axes for rotation, but no mesh for the arm.

image

I also saw this log pop up indicating that not all the files are loaded for the panda?

image

@vatanaksoytezer
Copy link
Contributor

I seemed to cannot reproduce this:
Can you try:

ros2 launch moveit2_tutorials demo.launch.py

without the rviz_tutorial:=true part?

@scole02
Copy link
Author

scole02 commented Oct 26, 2021

I seemed to cannot reproduce this:
Can you try:

ros2 launch moveit2_tutorials demo.launch.py

without the rviz_tutorial:=true part?

The same behavior is observed with or without the rviz_tutorial:=true

@scole02
Copy link
Author

scole02 commented Oct 26, 2021

I tried rebuilding the moveit2_tutorials repo using colcon as I did before and noticed that there are a bunch of cmake warnings about paths not existing. However all the packages seem to build properly and finish without error. It appears that the panda parts and description are mentioned here, not sure if this part of the problem?

Console Trace

@vatanaksoytezer
Copy link
Contributor

I tried rebuilding the moveit2_tutorials repo using colcon as I did before and noticed that there are a bunch of cmake warnings about paths not existing. However all the packages seem to build properly and finish without error. It appears that the panda parts and description are mentioned here, not sure if this part of the problem?

I am pretty sure that's not the problem. It's just a colcon warning after a rebuild. I am guessing this might be a Windows / Rviz issue? Did you try anything other than MoveIt and able to see robots in Rviz?

@dpiet
Copy link

dpiet commented Dec 8, 2021

@vatanaksoytezer I'm also experiencing this issue again with the latest foxy branch. I've made sure to purge all moveit released packages and updated my ros-foxy packages and still the same issue. I'm also on WSL2. I'll try other mesh display examples to rule out a GUI issue.

@vatanaksoytezer
Copy link
Contributor

vatanaksoytezer commented Dec 8, 2021

@vatanaksoytezer I'm also experiencing this issue again with the latest foxy branch. I've made sure to purge all moveit released packages and updated my ros-foxy packages and still the same issue. I'm also on WSL2. I'll try other mesh display examples to rule out a GUI issue.

@dpiet Yes, please try to display anything else, to rule out Windows GUI issues. Can you also share your logs so that I can look for errors?

@dpiet
Copy link

dpiet commented Dec 9, 2021

@vatanaksoytezer I am able to see a robot model mesh via:
ros2 launch dummy_robot_bringup dummy_robot_bringup.launch.py then opening rviz2 and adding a RobotModel display with /robot_description topic and changing fixed frame to world. So I don't think the problem is related to anything inherent in the WSL2 environment setup.
Here is a log output of the demo launch

@dpiet
Copy link

dpiet commented Dec 17, 2021

Hi @vatanaksoytezer any thoughts on this lingering issue? Can you confirm you can reproduce?

@vatanaksoytezer
Copy link
Contributor

Hi @dpiet thanks for the ping. Sorry for the delays, somehow missed this because of all the notifications. I can't reproduce this in any of my environments (release docker, source docker, local (Ubuntu 20.04) release, local source). And I don't have a clue from the log. I'll try to ping some folks to see if they can reproduce / help.

@rhaschke
Copy link
Contributor

This seems to be a rviz issue, not a MoveIt issue. Are you able to see any mesh in rviz? Did you try some of the marker tutorials, for example? Which environment do you use? Locale settings?

@dpiet
Copy link

dpiet commented Dec 21, 2021

@rhaschke I had run ros2 launch dummy_robot_bringup dummy_robot_bringup.launch.py successfully. This is on updated WSL2 running Ubuntu 20.04. Are you aware of any rviz issues in this environment?

@vatanaksoytezer
Copy link
Contributor

@dpiet I suspect the problem might be with the meshes. dummy_robot does not contain any meshes so that doesn't cancel any possiblity. I would suggest trying to spawn a robot with meshes (ie: turtlebot3) and eliminate the possibility. I have tried to control panda recently in Windows WSL and Ubuntu 20.04 using moveit docker images without any issues.

@rhaschke
Copy link
Contributor

I have seen several issues reports for WSL2 recently. Maybe they had an update, which broke something? I don't have a WSL2 system at hand for testing.

@dpiet
Copy link

dpiet commented Dec 21, 2021

This seems to be the related reported issue: ros2/rviz#804
I'm not OP, but the fact this can't be reproduced on various build systems and the reported issue, it appears to be a bug with rviz and/or WSL directly.

@farukomeraydin
Copy link

Hello, I had a similar problem. I am on Ubuntu 22.04, I am using ROS2 Humble. Check here: [(https://github.com/moveit/moveit2/issues/1049)]
This should solve your problem.

@ncbdrck
Copy link

ncbdrck commented Sep 25, 2024

The problem is with WSL, not ROS since WSL uses an older version of OpenGL.

I found the answer from this
https://answers.ros.org/question/394135/robot-meshes-not-visible-in-rviz-windows11-wsl2/

Follow the steps here to install new driver packages
microsoft/WSL#6154 (reply in thread)

@sea-bass
Copy link
Contributor

Thanks @ncbdrck -- will mark as closed

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

7 participants