feat: package TG3 TS1P OmniSocket teleoperation
This commit is contained in:
26
tg3_local_teleop/run.sh
Executable file
26
tg3_local_teleop/run.sh
Executable file
@@ -0,0 +1,26 @@
|
||||
#!/usr/bin/env bash
|
||||
# ROS setup scripts probe optional variables, so enable nounset only after
|
||||
# sourcing the overlays.
|
||||
set -eo pipefail
|
||||
|
||||
APP_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
source /opt/ros/jazzy/setup.bash
|
||||
|
||||
if [[ -f /home/nvidia/xos/setup.bash ]]; then
|
||||
source /home/nvidia/xos/setup.bash
|
||||
fi
|
||||
if [[ -f /opt/robot_tele_server/install/setup.bash ]]; then
|
||||
source /opt/robot_tele_server/install/setup.bash
|
||||
fi
|
||||
if [[ -f "$APP_DIR/ros2_py/install/setup.bash" ]]; then
|
||||
source "$APP_DIR/ros2_py/install/setup.bash"
|
||||
fi
|
||||
if [[ -d /home/nvidia/OmniSocketGo/python ]]; then
|
||||
export PYTHONPATH="/home/nvidia/OmniSocketGo/python${PYTHONPATH:+:$PYTHONPATH}"
|
||||
fi
|
||||
set -u
|
||||
|
||||
exec python3 "$APP_DIR/tg3_local_teleop.py" \
|
||||
--config "$APP_DIR/config.toml" \
|
||||
--status-file "$APP_DIR/status.json" \
|
||||
"$@"
|
||||
Reference in New Issue
Block a user