File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,8 +9,7 @@ RUN . /opt/ros/$ROS_DISTRO/setup.sh \
99&& rm -rf log/ build/ src/
1010
1111# Disable shared memory
12- COPY disable_fastdds_shm.xml /tmp/
13- ENV FASTRTPS_DEFAULT_PROFILES_FILE=/tmp/disable_fastdds_shm.xml
12+ COPY disable_fastdds_shm.xml disable_fastdds_shm_localhost_only.xml /tmp/
1413
1514# setup entrypoint
1615COPY ./micro-ros_entrypoint.sh /
Original file line number Diff line number Diff line change 1+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2+ <!-- The only purpose of this file is to disable Fast-DDS SHM transport used by default to use UDPv4-->
3+ <profiles xmlns =" http://www.eprosima.com/XMLSchemas/fastRTPS_Profiles" >
4+ <transport_descriptors >
5+ <transport_descriptor >
6+ <transport_id >CustomUdpTransport</transport_id >
7+ <type >UDPv4</type >
8+ <interfaceWhiteList >
9+ <address >127.0.0.1</address >
10+ </interfaceWhiteList >
11+ </transport_descriptor >
12+ </transport_descriptors >
13+
14+ <participant profile_name =" participant_profile" is_default_profile =" true" >
15+ <rtps >
16+ <userTransports >
17+ <transport_id >CustomUdpTransport</transport_id >
18+ </userTransports >
19+
20+ <useBuiltinTransports >false</useBuiltinTransports >
21+ </rtps >
22+ </participant >
23+ </profiles >
Original file line number Diff line number Diff line change 11. " /opt/ros/$ROS_DISTRO /setup.sh"
22. " /uros_ws/install/local_setup.sh"
3+
4+ if [ " $ROS_LOCALHOST_ONLY " = " 1" ] ; then
5+ export FASTRTPS_DEFAULT_PROFILES_FILE=/tmp/disable_fastdds_shm_localhost_only.xml
6+ else
7+ export FASTRTPS_DEFAULT_PROFILES_FILE=/tmp/disable_fastdds_shm.xml
8+ fi
9+
310exec ros2 run micro_ros_agent micro_ros_agent " $@ "
You can’t perform that action at this time.
0 commit comments