You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _posts/2024-11-28-Enhancing-ros-builds-with-Conan.markdown
+7-5Lines changed: 7 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -39,29 +39,31 @@ ROS organizes code into packages, each containing a `package.xml` with some meta
39
39
40
40
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.
41
41
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:
43
43
44
44
#### _`Dockerfile`_
45
45
```dockerfile
46
-
FROM osrf/ros:humble-desktop
46
+
FROM osrf/ros:kilted-desktop
47
47
RUN apt-get update && apt-get install -y \
48
48
curl \
49
49
python3-pip \
50
50
git \
51
-
ros-humble-nav2-msgs \
51
+
ros-kilted-nav2-msgs \
52
52
&& rm -rf /var/lib/apt/lists/*
53
53
RUN pip3 install --upgrade pip && pip3 install conan
54
54
RUN conan profile detect
55
55
CMD ["bash"]
56
56
```
57
57
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).
59
61
60
62
First, we create a workspace `navigation_ws` folder, set the environment of your ROS installation, and create a package:
0 commit comments