moveit2: Launch Error
Description
I have a problem with launcher. This problem is in source build installation, not binary. When I use binary, it works correctly. But when I install MoveIt 2 from source, it doesn’t work. Note, tutorials launch files works without problems.
My environment
- ROS Distro: Humble
- OS Version: Ubuntu 22.04
- Source build branch humble
- Cyclone DDS
Steps to reproduce
I created a moveit package using setup_assistant. Its name is moveit2_package. After building and sourcing the workspace, I launched the launch file.
$ ros2 launch moveit2_package demo.launch.py
Expected behaviour
Opening RViz2 with the robot It is correct when I install MoveIt 2 from binary!
Actual behaviour
An error occured.
Backtrace or Console output
[ERROR] [launch]: Caught exception in launch (see debug for traceback): 'capabilities'
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 12
- Comments: 22 (2 by maintainers)
Links to this issue
Commits related to this issue
- fix move_group_capabilities usage * this fixes an issue seen when no capabilities are defined (#2734) * also adds ability to specify disabled capabilities — committed to mikeferguson/moveit2 by mikeferguson 2 years ago
- fix move_group_capabilities usage * this fixes an issue seen when no capabilities are defined (#2734) * also adds ability to specify disabled capabilities — committed to mikeferguson/moveit2 by mikeferguson 2 years ago
I also had a similar problem
I don’t know if it’s the right solution, but I solved it by editing the moveit_configs_utils code.
at ~/ros_ws/src/moveit2/moveit_configs_utils/moveit_configs_utils/launches.py line203
default_value=moveit_config.move_group_capabilities[“capabilities”], -> default_value=moveit_config.move_group_capabilities,
Thanks, this solution works for me.
To provide more context, I am working on Ubuntu 22.04, ROS humble in a docker container. I installed moveit2 from binary and used setup assistant to create config files for a customized robot arm and gripper, the
ros2 launch my_robot_moveit_config demo.launchworked well, but when I built moveit2 from source (to use Python binding), the same launch file produced the error