Woojoong Kim | 676bbac | 2021-01-15 12:00:33 -0800 | [diff] [blame^] | 1 | #!/bin/bash |
2 | # Copyright 2021-present Open Networking Foundation | ||||
3 | # | ||||
4 | # SPDX-License-Identifier: LicenseRef-ONF-Member-Only-1.0 | ||||
5 | |||||
6 | set -ex | ||||
7 | |||||
8 | {{- range .Values.config.rosCore.droneList }} | ||||
9 | echo "{{ .ipAddr }} {{ .domain }}" >> /etc/hosts | ||||
10 | {{- end }} | ||||
11 | |||||
12 | {{ if .Values.config.rosCore.debug }} | ||||
13 | while true; do sleep 3600; done; | ||||
14 | {{ else }} | ||||
15 | source /opt/ros/melodic/setup.bash && roscore; | ||||
16 | {{ end }} |