Files
----1.0/run_o30_range_calibration.sh
T

18 lines
637 B
Bash
Executable File
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/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" "$@"