克隆后还缺仿真安装树和两边的编译目录。把 build、build_sim、install_sim 一并放进仓库;仿真入口不再写死本机 conda,build 里指向源码的链接改成相对路径。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
arm_dev
2026-10-15 11:07:04 +08:00
parent 926a7f9796
commit 80983954a4
5804 changed files with 2640781 additions and 3 deletions
+42
View File
@@ -0,0 +1,42 @@
# generated from colcon_bash/shell/template/prefix_chain.bash.em
# This script extends the environment with the environment of other prefix
# paths which were sourced when this file was generated as well as all packages
# contained in this prefix path.
# function to source another script with conditional trace output
# first argument: the path of the script
_colcon_prefix_chain_bash_source_script() {
if [ -f "$1" ]; then
if [ -n "$COLCON_TRACE" ]; then
echo "# . \"$1\""
fi
. "$1"
else
echo "not found: \"$1\"" 1>&2
fi
}
# source chained prefixes
# setting COLCON_CURRENT_PREFIX avoids determining the prefix in the sourced script
# 不写死某一台机器的 conda。已激活的环境优先,否则找当前用户的 ros_gz_sim。
if [ -n "${CONDA_PREFIX:-}" ] && [ -f "${CONDA_PREFIX}/local_setup.bash" ]; then
COLCON_CURRENT_PREFIX="${CONDA_PREFIX}"
elif [ -f "${HOME}/anaconda3/envs/ros_gz_sim/local_setup.bash" ]; then
COLCON_CURRENT_PREFIX="${HOME}/anaconda3/envs/ros_gz_sim"
elif [ -f "${HOME}/miniconda3/envs/ros_gz_sim/local_setup.bash" ]; then
COLCON_CURRENT_PREFIX="${HOME}/miniconda3/envs/ros_gz_sim"
else
COLCON_CURRENT_PREFIX=""
fi
if [ -n "${COLCON_CURRENT_PREFIX}" ]; then
_colcon_prefix_chain_bash_source_script "$COLCON_CURRENT_PREFIX/local_setup.bash"
fi
# source this prefix
# setting COLCON_CURRENT_PREFIX avoids determining the prefix in the sourced script
COLCON_CURRENT_PREFIX="$(builtin cd "`dirname "${BASH_SOURCE[0]}"`" > /dev/null && pwd)"
_colcon_prefix_chain_bash_source_script "$COLCON_CURRENT_PREFIX/local_setup.bash"
unset COLCON_CURRENT_PREFIX
unset _colcon_prefix_chain_bash_source_script