diff --git a/micro-ROS-Agent/Dockerfile b/micro-ROS-Agent/Dockerfile index faad534..73f23dc 100644 --- a/micro-ROS-Agent/Dockerfile +++ b/micro-ROS-Agent/Dockerfile @@ -7,6 +7,10 @@ RUN . /opt/ros/$ROS_DISTRO/setup.sh \ && ros2 run micro_ros_setup build_agent.sh \ && rm -rf log/ build/ src/ +# Disable shared memory +COPY disable_fastdds_shm.xml /tmp/ +ENV FASTRTPS_DEFAULT_PROFILES_FILE=/tmp/disable_fastdds_shm.xml + # setup entrypoint COPY ./micro-ros_entrypoint.sh / ENTRYPOINT ["/bin/sh", "/micro-ros_entrypoint.sh"] diff --git a/micro-ROS-Agent/disable_fastdds_shm.xml b/micro-ROS-Agent/disable_fastdds_shm.xml new file mode 100644 index 0000000..5cc9f52 --- /dev/null +++ b/micro-ROS-Agent/disable_fastdds_shm.xml @@ -0,0 +1,20 @@ + + + + + + CustomUdpTransport + UDPv4 + + + + + + + CustomUdpTransport + + + false + + + \ No newline at end of file