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

MoveIt Setup Assistant crashes when URDF is invalid path or not on ROS2 path #1944

Closed
vidalperezbohoyo opened this issue Feb 12, 2023 · 9 comments · Fixed by #2032
Closed
Assignees
Labels
bug Something isn't working

Comments

@vidalperezbohoyo
Copy link

Description

I'm trying to setup a new robot, but I'm barely able to get past the first step. The program stops responding when clicking on create a new package and trying to load an urdf. Even writing something in the textbox already stops working. It doesn't get any messages from the terminal.

Your environment

  • ROS Distro: Humble
  • OS Version: 22.04
  • Source and binary (same with this error)
  • Latest
  • Latest
  • Cyclone DDS

Steps to reproduce

If write on textbox in create new package import urdf or browse and select any urdf.

@vidalperezbohoyo vidalperezbohoyo added the bug Something isn't working label Feb 12, 2023
@patricia241
Copy link

I have the same problem.

@LSBigum
Copy link

LSBigum commented Feb 18, 2023

I haven't got this issue. Did the following:
sudo apt install ros-humble-moveit
Sourced the underlay and my overlay (source /opt/ros/humble/setup.bash and source ros2_ws/install/setup.bash)
Ran ros2 launch moveit_setup_assistant setup_assistant.launch.py verbose:=true
And then I was able to load my .xacro file and generate a moveit config.

  • ROS Distro: Humble
  • OS Version: 22.04
  • Binary install
  • Fast DDS

@vidalperezbohoyo
Copy link
Author

Doesn't work. I have this installed. With verbose nothing is displayed when crashes.

@vidalperezbohoyo
Copy link
Author

I have tried to unistall it , then autoremove to clean all. Then changed Ubuntu to US lenguage and then reboot. Then installed again with your command. But is NOT working...

@vidalperezbohoyo
Copy link
Author

I have retried in a virtualbox from zero. Same error.

Now there is more info:

[INFO] [launch]: All log files can be found below /home/vidi/.ros/log/2023-02-19-14-07-51-890511-vidi-VirtualBox-53720
[INFO] [launch]: Default logging verbosity is set to INFO
[INFO] [moveit_setup_assistant-1]: process started with pid [53721]
[moveit_setup_assistant-1] Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
[ERROR] [moveit_setup_assistant-1]: process has died [pid 53721, exit code -9, cmd '/opt/ros/humble/lib/moveit_setup_assistant/moveit_setup_assistant --ros-args'].

Is this version of moveit. Assistant is broken!

@mikeferguson
Copy link
Contributor

I just installed humble debs to test this out - could not reproduce the error as noted here - the things I did find:

Since I noticed you have:

[moveit_setup_assistant-1] Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.

I'm thinking that this is due to some aspect of your Ubuntu/X11 setup. On my machine (which is basically a plain desktop 22.04 install), I have XDG_SESSION_TYPE=x11. Have you tried setting QT_QPA_PLATFORM to wayland as it suggests?

@vidalperezbohoyo
Copy link
Author

Thanks! I found the problem: urdf must be inside a package in the workspace and sourced. Also there is a bug when you try to type in the textbox. And program should drop an error when urdf is not valid because of the location. In my opinion the program should not crash for x reasons. Thanks a lot!.

I don`t know if the XDG_SESSION_TYPE affects. I have not changed anything about it. I just installed ubuntu from scratch and this is how it comes.

@mikeferguson
Copy link
Contributor

It's interesting that you didn't get a giant screen dump error trace - cause I got a mountain of debugging information when I tried to open a URDF not on the path - I'm going to change the title of this ticket and assign to myself to track down a fix for the urdf issue

@mikeferguson mikeferguson changed the title MoveIt Setup Assistant not working! MoveIt Setup Assistant crashes when URDF is invalid path or not on ROS2 path Feb 21, 2023
@mikeferguson mikeferguson self-assigned this Feb 21, 2023
@mikeferguson
Copy link
Contributor

WIP is over here: https://github.com/mikeferguson/moveit2/tree/fix_1944 - this fixes the first issue (typing into the box doesn't crash) and starts to fix the second (not on ROS package path no longer crashes, but we end up in an odd state and try to load various non-existent meshes - still gotta fix that)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
4 participants