45 lines
1.6 KiB
Bash
Executable File
45 lines
1.6 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
# https://autowarefoundation.github.io/autoware-documentation/main/installation/additional-settings-for-developers/network-configuration/dds-settings/
|
|
# Check if root
|
|
if [ "$EUID" -ne 0 ]
|
|
then echo "Please run as root"
|
|
exit
|
|
fi
|
|
|
|
cp docker-compose@.service /etc/systemd/system/
|
|
|
|
mkdir -p /etc/docker/compose/ros2aria/
|
|
mkdir -p /etc/docker/compose/hokuyo/
|
|
mkdir -p /etc/docker/compose/decawave/
|
|
mkdir -p /etc/docker/compose/navigation2/
|
|
|
|
cp compose.ros2aria.yaml /etc/docker/compose/ros2aria/compose.yaml
|
|
cp compose.hokuyo.yaml /etc/docker/compose/hokuyo/compose.yaml
|
|
cp compose.decawave.yaml /etc/docker/compose/decawave/compose.yaml
|
|
|
|
cp compose.navigation2.yaml /etc/docker/compose/navigation2/compose.yaml
|
|
|
|
|
|
|
|
cp .env fastdds.xml cyclonedds.xml /etc/docker/compose/ros2aria/
|
|
cp .env fastdds.xml cyclonedds.xml /etc/docker/compose/hokuyo/
|
|
cp .env fastdds.xml cyclonedds.xml /etc/docker/compose/decawave/
|
|
cp .env fastdds.xml cyclonedds.xml /etc/docker/compose/navigation2/
|
|
|
|
cp -r husarion_utils config maps /etc/docker/compose/navigation2/
|
|
|
|
cp 10-cyclone-max.conf /etc/sysctl.d/10-cyclone-max.conf
|
|
|
|
sysctl --system | grep 10-cyclone-max.conf
|
|
systemctl daemon-reload
|
|
|
|
systemctl enable docker-compose@ros2aria.service
|
|
systemctl enable docker-compose@hokuyo.service
|
|
systemctl disable docker-compose@navigation2.service
|
|
systemctl enable docker-compose@decawave.service
|
|
|
|
systemctl restart docker-compose@ros2aria.service
|
|
systemctl restart docker-compose@hokuyo.service
|
|
systemctl stop docker-compose@navigation2.service
|
|
systemctl restart docker-compose@decawave.service |