Skip to content

Commit 230ff2c

Browse files
Merge pull request #26 from Intelligent-Testing-Lab/15-setup-dockerfile
15 setup dockerfile
2 parents eebff0e + ff74291 commit 230ff2c

2 files changed

Lines changed: 26 additions & 1 deletion

File tree

Dockerfile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,14 @@ RUN python3 -m pip install -r requirements.txt && \
2828
tar -xvf PythonAPI.tar && \
2929
rm -rf PythonAPI.tar
3030

31+
# update CYCLONE DDS Config for ROS
32+
RUN mkdir /cyclonedds && \
33+
mv /autoware_scenario_runner/docker/cyclonedds.xml /cyclonedds/ && \
34+
echo "export RMW_IMPLEMENTATION=rmw_cyclonedds_cpp" >> ~/.bashrc && \
35+
echo "export CYCLONEDDS_URI=file:///cyclonedds/cyclonedds.xml" >> ~/.bashrc && \
36+
source ~/.bashrc
37+
3138
ENV CARLA_API_ROOT="/autoware_scenario_runner/PythonAPI"
3239
ENV PYTHONPATH="${PYTHONPATH}:${CARLA_API_ROOT}/carla/agents:${CARLA_API_ROOT}/carla"
3340

34-
ENTRYPOINT [ "/autoware_scenario_runner/entrypoint.sh" ]
41+
ENTRYPOINT [ "/autoware_scenario_runner/entrypoint.sh" ]

docker/cyclonedds.xml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?xml version="1.0" encoding="UTF-8" ?>
2+
<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">
3+
<Domain Id="any">
4+
<General>
5+
<Interfaces>
6+
<NetworkInterface autodetermine="true" priority="default" multicast="default" />
7+
</Interfaces>
8+
<AllowMulticast>default</AllowMulticast>
9+
<MaxMessageSize>65500B</MaxMessageSize>
10+
</General>
11+
<Internal>
12+
<SocketReceiveBufferSize min="10MB"/>
13+
<Watermarks>
14+
<WhcHigh>500kB</WhcHigh>
15+
</Watermarks>
16+
</Internal>
17+
</Domain>
18+
</CycloneDDS>

0 commit comments

Comments
 (0)