Skip to content

Commit 15cfbe6

Browse files
committed
add instructions for auto-install ROS dependencies
1 parent 4123dfb commit 15cfbe6

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

README.md

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,27 @@ cd ~/ros2_ws/src
3030
git clone -b ros_2 $REPO_URL(HTPPS/SSH)
3131
```
3232

33-
2. Build workspace
33+
2. install all ROS dependencies (the warning for `ament_cmake_clange_format` can be ignored..)
34+
```bash
35+
cd ~/ros2_ws
36+
# source ROS
37+
. /opt/ros/$INSTALLED_ROS_CONTRIB/setup.bash
38+
# initialize rosdep
39+
sudo rosdep init # only required if not already done for other projects on your system
40+
# update rosdep
41+
rosdep update
42+
# install dependencies
43+
rosdep install --from-paths src --ignore-src -y
44+
```
45+
46+
3. Build your workspace
3447
```bash
3548
cd ~/ros2_ws
3649
. /opt/ros/$INSTALLED_ROS_CONTRIB/setup.bash
3750
colcon build --symlink-install
3851
```
3952

40-
3. Source workspace and launch
53+
4. Source workspace and launch
4154
```bash
4255
. install/setup.bash
4356
ros2 launch adma_ros2_driver adma_driver.launch.py

0 commit comments

Comments
 (0)