forked from storypku/CyberRT
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.bash
executable file
·37 lines (25 loc) · 936 Bytes
/
setup.bash
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
33
34
35
36
37
#! /usr/bin/env bash
TOP_DIR="$(cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd -P)"
source ${TOP_DIR}/tools/common.bashrc
export CYBER_PATH=${TOP_DIR}
BAZEL_BIN_DIR="${TOP_DIR}/bazel-bin"
pathprepend ${BAZEL_BIN_DIR}/cyber_py3/tools
pathprepend ${BAZEL_BIN_DIR}/cyber/mainboard
pathprepend ${BAZEL_BIN_DIR}/cyber/tools/cyber_recorder
pathprepend ${BAZEL_BIN_DIR}/cyber/tools/cyber_monitor
pathprepend /usr/local/fast-rtps/lib LD_LIBRARY_PATH
# TODO(storypku):
# Revisit for external projects that depend on CyberRT
pathprepend ${BAZEL_BIN_DIR} PYTHONPATH
pathprepend ${BAZEL_BIN_DIR}/cyber_py3/internal PYTHONPATH
export CYBER_DOMAIN_ID=80
export CYBER_IP=127.0.0.1
export GLOG_log_dir="${TOP_DIR}/data/log"
export GLOG_alsologtostderr=1
export GLOG_colorlogtostderr=1
export GLOG_minloglevel=0
# for DEBUG log
#export GLOG_v=4
export sysmo_start=0
source ${TOP_DIR}/tools/cyber_completions.bash
unset BAZEL_BIN_DIR TOP_DIR