Skip to content

Commit 9a476d4

Browse files
authored
Merge pull request #296 from conan-io/danimtb/update-ros2-blog
Update ROS2 post to kilted version
2 parents 5cf687a + 71033f5 commit 9a476d4

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

_posts/2024-11-28-Enhancing-ros-builds-with-Conan.markdown

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,29 +39,31 @@ ROS organizes code into packages, each containing a `package.xml` with some meta
3939

4040
For readers unfamiliar with ROS, we would like to show how a ROS package can be created and built to get to know the process. We will showcase the Conan integration later in the example.
4141

42-
We will need a **Linux environment with the ROS2 Humble version installed**. If you are running in another system or just for convenience, you can also build and run the commands using this dockerfile:
42+
We will need a **Linux environment with the ROS2 Kilted version installed**. If you are running in another system or just for convenience, you can also build and run the commands using this dockerfile:
4343

4444
#### _`Dockerfile`_
4545
```dockerfile
46-
FROM osrf/ros:humble-desktop
46+
FROM osrf/ros:kilted-desktop
4747
RUN apt-get update && apt-get install -y \
4848
curl \
4949
python3-pip \
5050
git \
51-
ros-humble-nav2-msgs \
51+
ros-kilted-nav2-msgs \
5252
&& rm -rf /var/lib/apt/lists/*
5353
RUN pip3 install --upgrade pip && pip3 install conan
5454
RUN conan profile detect
5555
CMD ["bash"]
5656
```
5757

58-
> You can build and run the docker image using ``docker build -t conanio/ros-humble .``, and run it with ``docker run -it conanio/ros-humble``
58+
> You can build and run the docker image using ``docker build -t conanio/ros-kilted .``, and run it with ``docker run -it conanio/ros-kilted``
59+
60+
> If you are using Windows, you can either use WSL or follow the [installation instructions in the ROS 2 documentation](https://docs.ros.org/en/kilted/Installation/Windows-Install-Binary.html).
5961
6062
First, we create a workspace `navigation_ws` folder, set the environment of your ROS installation, and create a package:
6163

6264
```sh
6365
$ mkdir /home/navigation_ws && cd /home/navigation_ws
64-
$ source /opt/ros/humble/setup.bash
66+
$ source /opt/ros/kilted/setup.bash
6567
$ ros2 pkg create --build-type ament_cmake --node-name navigator navigation_package
6668
```
6769

0 commit comments

Comments
 (0)