-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Added instructions to use Gazebo sources with rosdep
#6656
Conversation
sudo apt update | ||
rosdep update | ||
rosdep install --from-paths src --ignore-src -r | ||
rosdep install --from-paths src --ignore-src -y |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should leave in sudo apt update
and rosdep update
. It's necessary. Please only remove the -r
flag.
dev/source/docs/ros2-gazebo.rst
Outdated
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/pkgs-osrf-archive-keyring.gpg] http://packages.osrfoundation.org/gazebo/ubuntu-stable $(lsb_release -cs) main" | tee /etc/apt/sources.list.d/gazebo-stable.list > /dev/null | ||
sudo apt update | ||
|
||
Add Gazebo sources to `rosdep`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add Gazebo sources to `rosdep`. | |
Add Gazebo sources to `rosdep` for the non-default paring of ROS 2 humble and Gazebo Harmonic. |
It's helpful to explain context.
@Ryanf55 Thanks for the feedback. I have made the requested changes! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Huge thanks for iterating.
dev/source/docs/ros2-gazebo.rst
Outdated
@@ -44,7 +44,7 @@ Add Gazebo APT sources. | |||
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/pkgs-osrf-archive-keyring.gpg] http://packages.osrfoundation.org/gazebo/ubuntu-stable $(lsb_release -cs) main" | tee /etc/apt/sources.list.d/gazebo-stable.list > /dev/null | |||
sudo apt update | |||
|
|||
Add Gazebo sources to `rosdep`. | |||
Add Gazebo sources to `rosdep` for the non-default paring of ROS 2 humble and Gazebo Harmonic. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add Gazebo sources to `rosdep` for the non-default paring of ROS 2 humble and Gazebo Harmonic. | |
Add Gazebo sources to `rosdep` for the non-default pairing of ROS 2 humble and Gazebo Harmonic. |
Just a spelling error, otherwise LGTM.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry about that. Fixed the mistake!
squash commits and I'll merge it..thanks |
Signed-off-by: Saurabh Kamat <[email protected]>
Done! |
Summary
Following the discussion in ArduPilot/ardupilot_ros#32, this update improves the "ROS 2 with Gazebo" setup instructions by adding Gazebo sources to
rosdep
.The current approach allows users to bypass
rosdep
errors using the-r
flag, which can later lead to build failures. By instructing users to add Gazebo sources, rosdep will properly install the requiredgz
libraries.