18 lines
637 B
Bash
Executable File
18 lines
637 B
Bash
Executable File
#!/usr/bin/env bash
|
||
set -e
|
||
cd -- "$(dirname -- "${BASH_SOURCE[0]}")"
|
||
export ROS_DOMAIN_ID=73
|
||
export ROS_AUTOMATIC_DISCOVERY_RANGE=LOCALHOST
|
||
export ROS_STATIC_PEERS=''
|
||
source /opt/ros/jazzy/setup.bash
|
||
source install/setup.bash
|
||
source install/o30_range_import/setup.bash
|
||
profile="${1:-o30_left}"
|
||
if [[ "$profile" != o30_left && "$profile" != o30_right ]]; then
|
||
echo '用法: ./run_o30_range_calibration.sh [o30_left|o30_right]' >&2
|
||
exit 2
|
||
fi
|
||
shift "$(( $# > 0 ? 1 : 0 ))"
|
||
echo "O30 标定:${profile},ROS_DOMAIN_ID=73,仅本机发现"
|
||
exec ros2 launch linkerhand_range_calibration calibrate.launch.py "profile:=$profile" "$@"
|