File size: 662 Bytes
da5a206
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/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 "$@"