forked from flowdriveai/flowpilot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
launch_flowpilot.sh
executable file
·32 lines (26 loc) · 1.04 KB
/
launch_flowpilot.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
set -e
source ./.env
#export WIDE_ROAD_CAMERA_SOURCE="selfdrive/assets/tmp" # no affect on android
export ROAD_CAMERA_SOURCE="selfdrive/assets/tmp" # no affect on android
export USE_GPU="0" # no affect on android, gpu always used on android
export PASSIVE="0"
export NOSENSOR="1"
#export MSGQ="1"
#export USE_PARAMS_NATIVE="1"
export ZMQ_MESSAGING_PROTOCOL="TCP" # TCP, INTER_PROCESS, SHARED_MEMORY
#export DISCOVERABLE_PUBLISHERS="1" # if enabled, other devices on same network can access sup/pub data.
#export DEVICE_ADDR="127.0.0.1" # connect to external device running flowpilot over same network. useful for livestreaming.
export SIMULATION="1"
#export FINGERPRINT="HONDA CIVIC 2016"
## android specific ##
export USE_SNPE="0" # only works for snapdragon devices.
if pgrep -x "flowinit" > /dev/null
then
echo "another instance of flowinit is already running"
exit
else
# start a tmux pane
tmux new-session -d -s "flowpilot" "scons && flowinit"
tmux attach -t flowpilot
fi
while true; do sleep 1; done