Skip to content

Commit

Permalink
Add Cyclone DDS ROS RMW (#3)
Browse files Browse the repository at this point in the history
Changes:

- Add cyclone DDS as ROS RMW + configurate it to support high msg
throughput
- Avoid `dev.sh` override `latest` docker tag for convenience
- Enable colorised ROS log
  • Loading branch information
hect95 authored May 20, 2024
1 parent 30a0d85 commit 0168d18
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 2 deletions.
13 changes: 13 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,25 @@ RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive \
apt-get -y --quiet --no-install-recommends install \
ros-"$ROS_DISTRO"-ros2-ouster \
# Install Cyclone DDS ROS RMW
ros-"$ROS_DISTRO"-rmw-cyclonedds-cpp \
&& rm -rf /var/lib/apt/lists/*

# Setup ROS workspace folder
ENV ROS_WS /opt/ros_ws
WORKDIR $ROS_WS

# Set cyclone DDS ROS RMW
ENV RMW_IMPLEMENTATION=rmw_cyclonedds_cpp

COPY ./cyclone_dds.xml $ROS_WS/

# Configure Cyclone cfg file
ENV CYCLONEDDS_URI=file://${ROS_WS}/cyclone_dds.xml

# Enable ROS log colorised output
ENV RCUTILS_COLORIZED_OUTPUT=1

# -----------------------------------------------------------------------

FROM base AS prebuilt
Expand Down
6 changes: 6 additions & 0 deletions av_ouster_launch/CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
Changelog for package av_ouster_launch
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Forthcoming
-----------
* Add cyclone DDS as ROS RMW + configurate it to support high msg throughput
* Avoid `dev.sh` override `latest` docker tag for convenience
* Enable colorised ROS log

1.0.1 (2024-05-07)
------------------
* Using ROS timestamp
Expand Down
9 changes: 9 additions & 0 deletions cyclone_dds.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8" ?>
<CycloneDDS xmlns="https://cdds.io/config" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="https://cdds.io/config
https://raw.githubusercontent.com/eclipse-cyclonedds/cyclonedds/master/etc/cyclonedds.xsd">
<Domain id="any">
<Internal>
<SocketReceiveBufferSize min="10MB"/>
</Internal>
</Domain>
</CycloneDDS>
4 changes: 2 additions & 2 deletions dev.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@

# Build docker image up to dev stage
DOCKER_BUILDKIT=1 docker build \
-t av_ouster:latest \
-t av_ouster:latest-dev \
-f Dockerfile --target dev .

# Run docker image with local code volumes for development
docker run -it --rm --net host \
-v /dev/shm:/dev/shm \
-v ./av_ouster_launch:/opt/ros_ws/src/av_ouster_launch \
av_ouster:latest
av_ouster:latest-dev

0 comments on commit 0168d18

Please sign in to comment.