File tree Expand file tree Collapse file tree 3 files changed +31
-2
lines changed Expand file tree Collapse file tree 3 files changed +31
-2
lines changed Original file line number Diff line number Diff line change @@ -9,8 +9,7 @@ RUN . /opt/ros/$ROS_DISTRO/setup.sh \
9
9
&& rm -rf log/ build/ src/
10
10
11
11
# 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/
14
13
15
14
# setup entrypoint
16
15
COPY ./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 1
1
. " /opt/ros/$ROS_DISTRO /setup.sh"
2
2
. " /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
+
3
10
exec ros2 run micro_ros_agent micro_ros_agent " $@ "
You can’t perform that action at this time.
0 commit comments