feat: add session-gated TG3 data collection
This commit is contained in:
26
tg3_local_teleop/run_data_recorder.sh
Executable file
26
tg3_local_teleop/run_data_recorder.sh
Executable file
@@ -0,0 +1,26 @@
|
||||
#!/usr/bin/env bash
|
||||
# Load every overlay needed to deserialize the TianGong custom message types
|
||||
# before rosbag2 discovers the configured topics.
|
||||
set -eo pipefail
|
||||
|
||||
APP_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
|
||||
required_setups=(
|
||||
/opt/ros/jazzy/setup.bash
|
||||
/home/nvidia/xos/setup.bash
|
||||
/opt/robot_tele_server/install/setup.bash
|
||||
"$APP_DIR/ros2_py/install/setup.bash"
|
||||
)
|
||||
for setup_file in "${required_setups[@]}"; do
|
||||
if [[ ! -f "$setup_file" ]]; then
|
||||
echo "Required ROS setup is missing: $setup_file" >&2
|
||||
exit 1
|
||||
fi
|
||||
# shellcheck disable=SC1090
|
||||
source "$setup_file"
|
||||
done
|
||||
set -u
|
||||
|
||||
exec python3 "$APP_DIR/data_recorder_node.py" \
|
||||
--config "$APP_DIR/config.toml" \
|
||||
"$@"
|
||||
Reference in New Issue
Block a user