#!/usr/bin/env bash
set -e

source /opt/ros/humble/setup.bash

if [ -f /opt/tros/humble/setup.bash ]; then
  source /opt/tros/humble/setup.bash
fi

if [ -n "${YILIAO_WS_SETUP:-}" ]; then
  source "$YILIAO_WS_SETUP"
elif [ -f "$HOME/yiliao_ws/install/setup.bash" ]; then
  source "$HOME/yiliao_ws/install/setup.bash"
fi

cd "$(dirname "$0")"
python3 tf_web_bridge.py "$@"

