2 Star 9 Fork 12

mirrors/CyberRT

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
setup.bash.in 1.86 KB
一键复制 编辑 原始数据 按行查看 历史
mirrors 提交于 2024-07-27 12:05 . feat: Added cyber log saved directory
#!/usr/bin/bash
_SETUP_PATH=$(cd `dirname $BASH_SOURCE[0]`; pwd)
USER_HOME_DIR=$(getent passwd $USER | cut -d: -f6)
CYBERRT_PATH=$(dirname "$_SETUP_PATH")
BUILD_PATH=$_SETUP_PATH
PATH=$_SETUP_PATH/bin/cyber/tools:$_SETUP_PATH/bin/cyber/mainboard:$PATH
PYTHONPATH=$_SETUP_PATH/lib/python@Python_VERSION@/site-packages:$_SETUP_PATH/lib/python@Python_VERSION@/site-packages/cyber/python/internal:$PYTHONPATH
LD_LIBRARY_PATH=$_SETUP_PATH/lib:$LD_LIBRARY_PATH
LIBRARY_PATH=$_SETUP_PATH/lib:$LIBRARY_PATH
CMAKE_PREFIX_PATH=$_SETUP_PATH:$CMAKE_PREFIX_PATH
PKG_CONFIG_PATH=$_SETUP_PATH/lib/pkgconfig:$_SETUP_PATH/share/pkgconfig:$PKG_CONFIG_PATH
CYBER_PATH=$_SETUP_PATH/share/
export PATH LD_LIBRARY_PATH CMAKE_PREFIX_PATH PKG_CONFIG_PATH PYTHONPATH CYBER_PATH
bazel_bin_path="${BUILD_PATH}/bin"
mainboard_path="${bazel_bin_path}/cyber/mainboard"
cyber_tool_path="${bazel_bin_path}/cyber/tools"
recorder_path="${cyber_tool_path}/cyber_recorder"
launch_path="${cyber_tool_path}/cyber_launch"
channel_path="${cyber_tool_path}/cyber_channel"
node_path="${cyber_tool_path}/cyber_node"
service_path="${cyber_tool_path}/cyber_service"
monitor_path="${cyber_tool_path}/cyber_monitor"
visualizer_path="${bazel_bin_path}/modules/tools/visualizer"
for entry in "${mainboard_path}" \
"${recorder_path}" "${monitor_path}" \
"${channel_path}" "${node_path}" \
"${service_path}" \
"${launch_path}" \
"${bazel_bin_path}" \
"${visualizer_path}" ; do
export PATH="${entry}":$PATH
done
# create log dir
CYBER_LOG_DIR_PREFIX="$USER_HOME_DIR/.cyber/log"
if [ ! -d "$CYBER_LOG_DIR_PREFIX" ]; then
mkdir -p "$CYBER_LOG_DIR_PREFIX"
fi
export GLOG_log_dir="$CYBER_LOG_DIR_PREFIX"
export GLOG_alsologtostderr=1
export GLOG_colorlogtostderr=1
export GLOG_minloglevel=0
export sysmo_start=0
export CYBER_DOMAIN_ID=80
export CYBER_IP=127.0.0.1
source ${BUILD_PATH}/cyber_tools_auto_complete.bash
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/minhanghuang/CyberRT.git
[email protected]:minhanghuang/CyberRT.git
minhanghuang
CyberRT
CyberRT
v9.0.0

搜索帮助