Posted by @sdumencic:
I am really new to robotics so I was following this tutorial on how to install Gazebo for ROS2 Jazzy: GitHub - husarion/rosbot_ros: ROS packages for ROSbot XL / 3 / 3 PRO / 2 / 2R / 2 PRO I get an error during rosdep install. The whole installation process is described below. I want to know how to fix the error I get and how to successfully install Gazebo with the husarion rosbot.
So it looked like this:
sudo apt-get update sudo apt-get install -y python3-pip ros-dev-tools
stm32flash
I already have ros2_ws directory so I did this:
cd ros2_ws/src
git clone https://github.com/husarion/rosbot_ros
Since I want to build and run Gazebo simulation, I skipped the hardware part. Then I installed the Gazebo Harmonic version compatible with ROS2 Jazzy following the guide on the official Gazebo site: Binary Installation on Ubuntu — Gazebo harmonic documentation I put the following line in the .bashrc file and sourced it.
export GZ_VERSION=harmonic
For building I did this:
export HUSARION_ROS_BUILD=simulation
source /opt/ros/$ROS_DISTRO/setup.bash
vcs import src < src/rosbot/rosbot_hardware.repos
vcs import src < src/rosbot/rosbot_simulation.repos
# Build only diff_drive_controller and imu_sensor_broadcaster from ros2_controllers
cp -r src/ros2_controllers/diff_drive_controller src && cp -r src/ros2_controllers/imu_sensor_broadcaster src && rm -rf src/ros2_controllers
sudo rosdep init
rosdep update --rosdistro $ROS_DISTRO
However, I get an error when executing the following lines:
rosdep install -i --from-path src --rosdistro $ROS_DISTRO -y
colcon build --cmake-args -DCMAKE_BUILD_TYPE=Release
It says this:
WARNING: Skipping /usr/lib/python3.12/dist-packages/pybind11-2.11.1.dist-info due to invalid metadata entry 'name'
WARNING: Skipping /usr/lib/python3.12/dist-packages/pybind11-2.11.1.dist-info due to invalid metadata entry 'name'
ERROR: the following packages/stacks could not have their rosdep keys resolved
to system dependencies:
rosbot_gazebo: Cannot locate rosdep definition for [ign_ros2_control]