Skip to content

Commit 9b64c85

Browse files
committed
modfiy for one-line installation
1 parent 8f85656 commit 9b64c85

File tree

1 file changed

+32
-35
lines changed

1 file changed

+32
-35
lines changed

extras/ros-jazzy-gz-harmonic-install.sh

Lines changed: 32 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ sudo apt install -y \
3131

3232
echo "Installation complete!"
3333

34+
echo "Installing Signing Keys for ROS and Gazebo..."
3435
sudo curl -sSL https://raw.githubusercontent.com/ros/rosdistro/master/ros.key \
3536
-o /usr/share/keyrings/ros-archive-keyring.gpg
3637
sudo wget https://packages.osrfoundation.org/gazebo.gpg \
@@ -46,45 +47,41 @@ echo "$REPO" | sudo tee /etc/apt/sources.list.d/ros2.list >/dev/null
4647
DISTRO=$(lsb_release -cs)
4748
REPO="deb [arch=$ARCH signed-by=/usr/share/keyrings/pkgs-osrf-archive-keyring.gpg] \
4849
http://packages.osrfoundation.org/gazebo/ubuntu-stable $DISTRO main"
49-
5050
echo "$REPO" | sudo tee /etc/apt/sources.list.d/gazebo-stable.list >/dev/null
5151

52-
sudo apt update
53-
54-
DIST=jazzy
55-
56-
sudo apt install -y \
52+
echo "Installing ROS Gazebo framework..."
53+
sudo apt update && apt install -y \
5754
python3-rosdep \
5855
python3-rosinstall-generator \
5956
python3-vcstool \
6057
gz-harmonic \
61-
ros-$DIST-desktop-full \
62-
ros-$DIST-gz-plugin-vendor \
63-
ros-$DIST-gz-ros2-control \
64-
ros-$DIST-effort-controllers \
65-
ros-$DIST-geographic-info \
66-
ros-$DIST-image-view \
67-
ros-$DIST-joint-state-publisher \
68-
ros-$DIST-joy \
69-
ros-$DIST-joy-teleop \
70-
ros-$DIST-key-teleop \
71-
ros-$DIST-moveit-planners \
72-
ros-$DIST-moveit-simple-controller-manager \
73-
ros-$DIST-moveit-ros-visualization \
74-
ros-$DIST-pcl-ros \
75-
ros-$DIST-robot-localization \
76-
ros-$DIST-robot-state-publisher \
77-
ros-$DIST-ros-base \
78-
ros-$DIST-ros2-controllers \
79-
ros-$DIST-rqt \
80-
ros-$DIST-rqt-common-plugins \
81-
ros-$DIST-rviz2 \
82-
ros-$DIST-teleop-tools \
83-
ros-$DIST-teleop-twist-joy \
84-
ros-$DIST-teleop-twist-keyboard \
85-
ros-$DIST-tf2-geometry-msgs \
86-
ros-$DIST-tf2-tools \
87-
ros-$DIST-urdfdom-py \
88-
ros-$DIST-xacro \
58+
ros-jazzy-desktop-full \
59+
ros-jazzy-gz-plugin-vendor \
60+
ros-jazzy-gz-ros2-control \
61+
ros-jazzy-effort-controllers \
62+
ros-jazzy-geographic-info \
63+
ros-jazzy-image-view \
64+
ros-jazzy-joint-state-publisher \
65+
ros-jazzy-joy \
66+
ros-jazzy-joy-teleop \
67+
ros-jazzy-key-teleop \
68+
ros-jazzy-moveit-planners \
69+
ros-jazzy-moveit-simple-controller-manager \
70+
ros-jazzy-moveit-ros-visualization \
71+
ros-jazzy-pcl-ros \
72+
ros-jazzy-robot-localization \
73+
ros-jazzy-robot-state-publisher \
74+
ros-jazzy-ros-base \
75+
ros-jazzy-ros2-controllers \
76+
ros-jazzy-rqt \
77+
ros-jazzy-rqt-common-plugins \
78+
ros-jazzy-rviz2 \
79+
ros-jazzy-teleop-tools \
80+
ros-jazzy-teleop-twist-joy \
81+
ros-jazzy-teleop-twist-keyboard \
82+
ros-jazzy-tf2-geometry-msgs \
83+
ros-jazzy-tf2-tools \
84+
ros-jazzy-urdfdom-py \
85+
ros-jazzy-xacro \
8986
ros-dev-tools \
90-
ros-$DIST-ros-gz \
87+
ros-jazzy-ros-gz \

0 commit comments

Comments
 (0)