5.1.7.5. eProsima Fast DDS¶
eProsima Fast DDS is a complete open-source DDS implementation for real time embedded architectures and operating systems. See also: https://www.eprosima.com/index.php/products-all/eprosima-fast-dds
5.1.7.5.1. Prerequisites¶
Have rosdep installed
5.1.7.5.2. Install packages¶
The easiest way is to install from ROS 2 apt repository.
sudo apt install ros-iron-rmw-fastrtps-cpp
5.1.7.5.3. Build from source code¶
Building from source code is also another way to install.
First, clone Fast DDS and rmw_fastrtps in the ROS 2 workspace source directory.
cd ros2_ws/src
git clone https://github.com/ros2/rmw_fastrtps ros2/rmw_fastrtps -b iron
git clone https://github.com/eProsima/Fast-DDS eProsima/fastrtps
Then, install necessary packages for Fast DDS.
cd ..
rosdep install --from src -i
Finally, run colcon build.
colcon build --symlink-install
5.1.7.5.4. Switch to rmw_fastrtps¶
The eProsima Fast DDS RMW can be selected by specifying the environment variable:
export RMW_IMPLEMENTATION=rmw_fastrtps_cpp
5.1.7.5.5. Run the talker and listener¶
Now run talker
and listener
to test Fast DDS.
ros2 run demo_nodes_cpp talker
ros2 run demo_nodes_cpp listener