#!/bin/bash # Base ROS2 + Sidecar Infrastructure Entrypoint Script set -e echo "Setting up base ROS2 + Sidecar infrastructure..." # Source ROS2 environment source /opt/ros/humble/setup.bash source /opt/ros/humble/install/setup.bash # Also, export the source command to the bashrc echo "source /opt/ros/humble/setup.bash" >> ~/.bashrc echo "source /opt/ros/humble/install/setup.bash" >> ~/.bashrc export PYTHONUNBUFFERED=1 echo "Base infrastructure ready:" echo " ROS_DOMAIN_ID: $ROS_DOMAIN_ID" echo " RMW_IMPLEMENTATION: $RMW_IMPLEMENTATION" echo " Skynet URL: $SKYNET_BASE_URL" echo " Component Type: $COMPONENT_TYPE" # Execute the command exec "$@"