diff --git a/integrations/ros.rst b/integrations/ros.rst index c34855d39406..9500c970044f 100644 --- a/integrations/ros.rst +++ b/integrations/ros.rst @@ -21,14 +21,34 @@ It provides a clean integration that requires no Conan-specific modifications in **Pre-requisites to run the example:** - 1. In order to run the example, it is exepected that you have an Ubuntu environment (22.04 LTS preferred) with `ROS2 Humble version installed `_. You can use the Docker image ``osrf/ros:humble-desktop`` instead as well. + 1. In order to run the example, it is expected that you have an Ubuntu environment (22.04 LTS preferred) with `ROS2 Humble version installed `_. For convenience, you can also use this Docker File instead: + + .. code-block:: docker + + FROM osrf/ros:humble-desktop + RUN apt-get update && apt-get install -y \ + curl \ + python3-pip \ + git \ + && rm -rf /var/lib/apt/lists/* + RUN pip3 install --upgrade pip && pip3 install conan==2.* + RUN conan profile detect + CMD ["bash"] + + + Simply copy the Dockerfile, build your image with ``docker build -t conanio/ros-humble .``, and finally run it with ``docker run -it conanio/ros-humble``. 2. The files for this example can be found at `our examples repository `_. Clone it like so to get started: .. code-block:: bash - $ git clone https://github.com/conan-io/examples2.git && cd examples2/examples/tools/ros/rosenv + $ git clone https://github.com/conan-io/examples2.git + $ cd examples2/examples/tools/ros/rosenv + + + + Consuming Conan packages using the ROSEnv generator