iRobotEducation / create3_sim

ROS 2 Simulation for the iRobot® Create® 3 Educational Robot
BSD 3-Clause "New" or "Revised" License
110 stars 56 forks source link

Issue with rosdep definition of gazebo #234

Open tillb98 opened 1 month ago

tillb98 commented 1 month ago

Describe the bug Hello, I tried to install the Create Simulator by following the installation instructions step by step with a fresh Ubuntu 22.04 LTS Jammy and ROS Humble. When building the create3_ws, I encounter the following error after running “rosdep install --from-path src -yi”:

ERROR: the following packages/stacks could not have their rosdep keys resolved to system dependencies: irobot_create_gz_bringup: Cannot locate rosdep definition for [gz_ros2_control] irobot_create_toolbox: Cannot locate rosdep definition for [gz_math_vendor] irobot_create_gz_plugins: Cannot locate rosdep definition for [gz_gui_vendor]

As a result, the next step “colcon build --symlink-install” also fails. This results in the following output: Starting >>> irobot_create_gz_plugins --- stderr: irobot_create_gz_plugins CMake Error at CMakeLists.txt:14 (find_package): By not providing "Findgz_gui_vendor.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "gz_gui_vendor", but CMake did not find one.

Could not find a package configuration file provided by "gz_gui_vendor" with any of the following names:

   gz_gui_vendorConfig.cmake
   gz_gui_vendor-config.cmake

Add the installation prefix of "gz_gui_vendor" to CMAKE_PREFIX_PATH or set "gz_gui_vendor_DIR" to a directory containing one of the above files. If "gz_gui_vendor" provides a separate development package or SDK, be sure it has been installed.

Failed <<< irobot_create_gz_plugins [1.04s, exited with code 1]

What is the reason for this and how can I fix the problems with gz_ros2_control or gz_math_vendor and gt_gui_vendor? Please excuse the question, I am still relatively inexperienced with ROS. Many greetings and thank you!

To Reproduce Follow the installation instructions step by step.

Expected behavior Successful addition of dependencies and subsequent successful building of the workspace.

Additional context Add any other context about the problem here. Build Error

alsora commented 1 month ago

To install the create 3 simulator you should use:

sudo apt-get install ros-humble-irobot-create-gazebo

or

sudo apt-get install ros-humble-irobot-create-ignition

depending on which version of the simulator you want to use.

tillb98 commented 4 weeks ago

To install the create 3 simulator you should use:

sudo apt-get install ros-humble-irobot-create-gazebo

or

sudo apt-get install ros-humble-irobot-create-ignition

depending on which version of the simulator you want to use.

Hey alsora, I noticed that the command you suggested, “sudo apt search ros-humble-irobot-create-gazebo”, still requires the ls extensions “-sim”, “-bringup” or “-dbgsym”. Installing these packages with “sudo apt-get install” will then work. The package readme file may need to be updated because the prompts now seem to vary slightly (e.g. gazebo is now spelled out instead of gz), but the simulation seems to work. Thanks for your help!