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

Package 'moveit2_tutorials' not found #925

Open
OmniLearner opened this issue Jul 17, 2024 · 4 comments
Open

Package 'moveit2_tutorials' not found #925

OmniLearner opened this issue Jul 17, 2024 · 4 comments

Comments

@OmniLearner
Copy link

Description

Overview of your issue here.

Your environment

Steps to reproduce

Followed instructions of this page:
https://moveit.picknik.ai/main/doc/tutorials/getting_started/getting_started.html

Expected behaviour

It should run as the demo says

Backtrace or Console output

$ ros2 launch moveit2_tutorials demo.launch.py

Package 'moveit2_tutorials' not found: "package 'moveit2_tutorials' not found, searching: ['/home/[email protected]/ws_moveit/install/moveit_resources_pr2_description', '/home/[email protected]/ws_moveit/install/moveit_resources_panda_description', '/home/[email protected]/ws_moveit/install/moveit_common', '/home/[email protected]/ros2_ws/install/my_robot_controller', '/opt/ros/humble']"

Can someone please help in this issue. Thanks in advance

@muhidabid
Copy link

muhidabid commented Jul 27, 2024

Hi, I am facing the same issue. I checked the folders and found demo.launch.py inside the directory: src -> moveit2_tutorials -> doc -> tutorials -> quickstart_in_rviz -> launch -> demo.launch.py. What seems to be happening is that ros2 launch command only checks inside the install folder and not the src folder.

I followed the Getting Started Tutorial and it cloned the tutorials repo in the src folder.

@nick-pape
Copy link

I'm facing the same issue on jazzy. I'm using the main branch of the tutorials repo. It looks like the tutorials actually build correctly (and can confirm they fail to build if I switch to humble branch), however, actually invoking the demo launch script fails.

> colcon build --mixin release
Starting >>> moveit_resources_panda_description
Starting >>> moveit_common
Starting >>> moveit_msgs
Starting >>> moveit_resources_pr2_description
Starting >>> srdfdom
Starting >>> geometric_shapes
Starting >>> moveit_resources_fanuc_description
Starting >>> moveit_resources_prbt_support
Starting >>> robotiq_description
Starting >>> kortex_api
Starting >>> rviz_visual_tools
Starting >>> serial
Starting >>> robotiq_controllers
Finished <<< moveit_common [0.67s]
Finished <<< moveit_resources_panda_description [0.70s]
Starting >>> rviz_marker_tools
Starting >>> moveit_resources_panda_moveit_config
Starting >>> dual_arm_panda_moveit_config
Finished <<< robotiq_description [0.71s]
Starting >>> kortex_description
Finished <<< moveit_resources_fanuc_description [0.76s]
Finished <<< moveit_resources_pr2_description [0.81s]
Finished <<< moveit_resources_prbt_support [0.79s]
Starting >>> moveit_resources_fanuc_moveit_config
Finished <<< kortex_api [0.80s]
Starting >>> kortex_driver
Finished <<< serial [0.89s]
Starting >>> robotiq_driver
Finished <<< robotiq_controllers [0.96s]
Finished <<< geometric_shapes [1.18s]
Finished <<< moveit_resources_panda_moveit_config [0.61s]
Finished <<< dual_arm_panda_moveit_config [0.60s]
Finished <<< kortex_description [0.58s]
Finished <<< rviz_marker_tools [0.68s]
Finished <<< moveit_resources_fanuc_moveit_config [0.57s]
Starting >>> moveit_resources
Finished <<< kortex_driver [0.62s]
Starting >>> kortex_bringup
Finished <<< srdfdom [1.52s]
Starting >>> moveit_configs_utils
Finished <<< rviz_visual_tools [1.49s]
Finished <<< robotiq_driver [0.68s]
Starting >>> robotiq_hardware_tests
Finished <<< moveit_resources [0.73s]
Finished <<< kortex_bringup [0.75s]
Finished <<< robotiq_hardware_tests [0.61s]
Finished <<< moveit_configs_utils [2.54s]
Finished <<< moveit_msgs [7.58s]
Starting >>> moveit_core
Starting >>> moveit_task_constructor_msgs
Finished <<< moveit_core [1.80s]
Starting >>> moveit_ros_occupancy_map_monitor
Starting >>> moveit_simple_controller_manager
Starting >>> moveit_resources_prbt_ikfast_manipulator_plugin
Starting >>> chomp_motion_planner
Starting >>> pilz_industrial_motion_planner_testutils
Starting >>> moveit_planners_stomp
Starting >>> pick_ik
Finished <<< moveit_task_constructor_msgs [2.34s]
Finished <<< moveit_resources_prbt_ikfast_manipulator_plugin [1.12s]
Finished <<< moveit_simple_controller_manager [1.18s]
Starting >>> moveit_plugins
Starting >>> moveit_ros_control_interface
Finished <<< moveit_ros_occupancy_map_monitor [1.25s]
Finished <<< chomp_motion_planner [1.24s]
Starting >>> moveit_ros_planning
Starting >>> moveit_planners_chomp
Finished <<< moveit_planners_stomp [1.28s]
Finished <<< pilz_industrial_motion_planner_testutils [1.35s]
Finished <<< pick_ik [1.37s]
Finished <<< moveit_plugins [0.88s]
Finished <<< moveit_ros_control_interface [1.05s]
Finished <<< moveit_planners_chomp [1.05s]
Finished <<< moveit_ros_planning [1.42s]
Starting >>> moveit_kinematics
Starting >>> moveit_ros_warehouse
Starting >>> moveit_ros_robot_interaction
Starting >>> moveit_planners_ompl
Starting >>> moveit_ros_perception
Starting >>> moveit_visual_tools
Finished <<< moveit_ros_robot_interaction [1.32s]
Finished <<< moveit_ros_perception [1.40s]
Finished <<< moveit_ros_warehouse [1.48s]
Finished <<< moveit_visual_tools [1.44s]
Starting >>> moveit_ros_benchmarks
Finished <<< moveit_kinematics [1.53s]
Starting >>> moveit_ros_move_group
Finished <<< moveit_planners_ompl [1.55s]
Finished <<< moveit_ros_benchmarks [1.62s]
Finished <<< moveit_ros_move_group [1.85s]
Starting >>> moveit_ros_planning_interface
Starting >>> moveit_resources_prbt_moveit_config
Finished <<< moveit_resources_prbt_moveit_config [1.85s]
Starting >>> moveit_resources_prbt_pg70_support
Finished <<< moveit_ros_planning_interface [2.02s]
Starting >>> moveit_ros_visualization
Starting >>> moveit_hybrid_planning
Starting >>> moveit_py
Finished <<< moveit_resources_prbt_pg70_support [1.65s]
Starting >>> pilz_industrial_motion_planner
Finished <<< moveit_hybrid_planning [1.99s]
Finished <<< moveit_py [2.56s]
Finished <<< moveit_ros_visualization [2.64s]
Starting >>> moveit_setup_framework
Starting >>> moveit_ros
Starting >>> moveit_servo
Finished <<< pilz_industrial_motion_planner [2.48s]
Starting >>> moveit_planners
Starting >>> moveit_ros_tests
Finished <<< moveit_ros [1.75s]
Starting >>> moveit_ros_trajectory_cache
Finished <<< moveit_setup_framework [1.93s]
Starting >>> moveit_setup_app_plugins
Starting >>> moveit_setup_controllers
Starting >>> moveit_setup_core_plugins
Starting >>> moveit_setup_srdf_plugins
Finished <<< moveit_servo [1.98s]
Finished <<< moveit_planners [1.97s]
Starting >>> moveit_task_constructor_core
Starting >>> moveit_runtime
[24.493s] WARNING:colcon.colcon_cmake.task.cmake.build:Could not run installation step for package 'moveit_ros_tests' because it has no 'install' target
Finished <<< moveit_ros_tests [2.40s]
Finished <<< moveit_ros_trajectory_cache [2.50s]
Finished <<< moveit_setup_app_plugins [2.62s]
Finished <<< moveit_setup_core_plugins [2.61s]
Finished <<< moveit_setup_srdf_plugins [2.70s]
Finished <<< moveit_setup_controllers [2.86s]
Starting >>> moveit_setup_assistant
Finished <<< moveit_runtime [3.27s]
Finished <<< moveit_task_constructor_core [4.24s]
Starting >>> moveit_task_constructor_capabilities
Starting >>> moveit_task_constructor_visualization
Finished <<< moveit_setup_assistant [3.16s]
Starting >>> kinova_gen3_7dof_robotiq_2f_85_moveit_config
Starting >>> moveit
Starting >>> kinova_gen3_6dof_robotiq_2f_85_moveit_config
Starting >>> kinova_gen3_lite_moveit_config
Finished <<< moveit_task_constructor_capabilities [2.83s]
Starting >>> moveit_task_constructor_demo
Finished <<< kinova_gen3_7dof_robotiq_2f_85_moveit_config [2.95s]
Finished <<< kinova_gen3_lite_moveit_config [3.02s]
Finished <<< moveit [3.14s]
Starting >>> moveit2_tutorials
Finished <<< kinova_gen3_6dof_robotiq_2f_85_moveit_config [3.16s]
Finished <<< moveit_task_constructor_visualization [3.63s]
Finished <<< moveit_task_constructor_demo [3.35s]
[Processing: moveit2_tutorials]
[Processing: moveit2_tutorials]
Finished <<< moveit2_tutorials [1min 16s]

Summary: 73 packages finished [1min 47s]
> ros2 launch moveit2_tutorials demo.launch.py
Package 'moveit2_tutorials' not found: "package 'moveit2_tutorials' not found, searching: ['/home/nickpape/ws_moveit2/install/pilz_industrial_motion_planner_testutils', '/home/nickpape/ws_moveit2/install/moveit_runtime', '/home/nickpape/ws_moveit2/install/moveit', '/home/nickpape/ws_moveit2/install/moveit_planners', '/home/nickpape/ws_moveit2/install/pilz_industrial_motion_planner', '/home/nickpape/ws_moveit2/install/moveit_ros_control_interface', '/home/nickpape/ws_moveit2/install/moveit_plugins', '/home/nickpape/ws_moveit2/install/moveit_simple_controller_manager', '/home/nickpape/ws_moveit2/install/moveit_setup_assistant', '/home/nickpape/ws_moveit2/install/moveit_setup_srdf_plugins', '/home/nickpape/ws_moveit2/install/moveit_setup_core_plugins', '/home/nickpape/ws_moveit2/install/moveit_setup_controllers', '/home/nickpape/ws_moveit2/install/moveit_setup_app_plugins', '/home/nickpape/ws_moveit2/install/moveit_setup_framework', '/home/nickpape/ws_moveit2/install/moveit_servo', '/home/nickpape/ws_moveit2/install/moveit_ros_trajectory_cache', '/home/nickpape/ws_moveit2/install/moveit_ros', '/home/nickpape/ws_moveit2/install/moveit_ros_visualization', '/home/nickpape/ws_moveit2/install/moveit_py', '/home/nickpape/ws_moveit2/install/moveit_hybrid_planning', '/home/nickpape/ws_moveit2/install/moveit_ros_planning_interface', '/home/nickpape/ws_moveit2/install/moveit_ros_benchmarks', '/home/nickpape/ws_moveit2/install/moveit_ros_warehouse', '/home/nickpape/ws_moveit2/install/moveit_ros_robot_interaction', '/home/nickpape/ws_moveit2/install/moveit_ros_perception', '/home/nickpape/ws_moveit2/install/moveit_resources_prbt_pg70_support', '/home/nickpape/ws_moveit2/install/moveit_resources_prbt_moveit_config', '/home/nickpape/ws_moveit2/install/moveit_ros_move_group', '/home/nickpape/ws_moveit2/install/moveit_planners_ompl', '/home/nickpape/ws_moveit2/install/moveit_kinematics', '/home/nickpape/ws_moveit2/install/moveit_ros_planning', '/home/nickpape/ws_moveit2/install/moveit_ros_occupancy_map_monitor', '/home/nickpape/ws_moveit2/install/moveit_resources_prbt_ikfast_manipulator_plugin', '/home/nickpape/ws_moveit2/install/moveit_planners_stomp', '/home/nickpape/ws_moveit2/install/moveit_planners_chomp', '/home/nickpape/ws_moveit2/install/chomp_motion_planner', '/home/nickpape/ws_moveit2/install/moveit_core', '/home/nickpape/ws_moveit2/install/moveit_configs_utils', '/home/nickpape/ws_moveit2/install/srdfdom', '/home/nickpape/ws_moveit2/install/moveit_resources_prbt_support', '/home/nickpape/ws_moveit2/install/moveit_resources', '/home/nickpape/ws_moveit2/install/moveit_resources_pr2_description', '/home/nickpape/ws_moveit2/install/moveit_resources_panda_moveit_config', '/home/nickpape/ws_moveit2/install/dual_arm_panda_moveit_config', '/home/nickpape/ws_moveit2/install/moveit_resources_panda_description', '/home/nickpape/ws_moveit2/install/moveit_resources_fanuc_moveit_config', '/home/nickpape/ws_moveit2/install/moveit_resources_fanuc_description', '/home/nickpape/ws_moveit2/install/moveit_msgs', '/home/nickpape/ws_moveit2/install/moveit_common', '/home/nickpape/ws_moveit2/install/geometric_shapes', '/opt/ros/jazzy']"

@nick-pape
Copy link

nick-pape commented Nov 19, 2024

I did get this working. Blew away everything in my workspace and started fresh. I followed these instructions:

https://moveit.ai/install-moveit2/source/

And then started from here:

https://github.com/moveit/moveit2_tutorials/blob/main/doc/tutorials/getting_started/getting_started.rst#download-source-code-of-moveit-and-the-tutorials

So the full set of commands I ran on Ubuntu 24.04 & ROS2 Jazzy was:

  1. Run:
    sudo apt install -y \
      build-essential \
      cmake \
      git \
      python3-colcon-common-extensions \
      python3-flake8 \
      python3-rosdep \
      python3-setuptools \
      python3-vcstool \
      wget
    
  2. sudo apt update
  3. source /opt/ros/$ROS_DISTRO/setup.bash
  4. sudo apt remove ros-$ROS_DISTRO-moveit*
  5. export COLCON_WS=~/ws_moveit2/
  6. mkdir -p $COLCON_WS/src
  7. cd $COLCON_WS/src
  8. git clone https://github.com/moveit/moveit2.git -b main
  9. for repo in moveit2/moveit2.repos $(f="moveit2/moveit2_$ROS_DISTRO.repos"; test -r $f && echo $f); do vcs import < "$repo"; done
  10. rosdep install -r --from-paths . --ignore-src --rosdistro $ROS_DISTRO -y
  11. cd $COLCON_WS
  12. colcon build --event-handlers desktop_notification- status- --cmake-args -DCMAKE_BUILD_TYPE=Release
  13. (Re-ran this again since I saw some warnings) colcon build --event-handlers desktop_notification- status- --cmake-args -DCMAKE_BUILD_TYPE=Release
  14. cd $COLCON_WS/src
  15. git clone https://github.com/moveit/moveit2_tutorials.git
  16. vcs import < moveit2_tutorials/moveit2_tutorials.repos (few warnings about other repos not synced exactly same, ignored)
  17. rosdep install -r --from-paths . --ignore-src --rosdistro rolling -y
  18. cd $COLCON_WS
  19. colcon build --event-handlers desktop_notification- status- --cmake-args -DCMAKE_BUILD_TYPE=Release (got some warnings in rviz_visual_tools and kortex but ignored)
  20. source ~/ws_moveit2/install/setup.bash
  21. ros2 launch moveit2_tutorials demo.launch.py

@sea-bass
Copy link
Contributor

Are you running source install/setup.bash once the build is complete? This is needed to get the newly built packages to show up.

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

4 participants