Simulation Platform: Container Setup¶
ubt_sim runs in a Docker container to isolate it from the host environment and simplify migration. The image contains ROS 2 and Isaac Sim and supports multiple robots.
Commands are split into two parts: build/enter the container on the host; launch simulation and collect data inside the container (project root is /ubt_sim).
Build and start the container (host)¶
cd ubt_sim/docker
bash run.sh build # build the ROS 2 + Isaac Sim image
bash run.sh start # create/start the ubt-sim container
bash run.sh init # install dependencies in the container (first build only)
bash run.sh check # verify GPU / ROS 2 / message packages / numpy<2
bash run.sh bash # enter the container (ROS 2 environment sourced automatically)
⚠️ Robot-specific, must be changed before building: edit
interfaceWhiteListinubt_sim/docker/fastdds_no_shm.xmland set<address>to the robot's direct-link subnet: Walker TienKung Pro192.168.41.99, Walker S2 EDU / Walker C1 EDU192.168.11.99, Walker TienKung Dex (Thor board192.168.11.3). The file is copied into the image at build time, so editing it afterwards has no effect.
To separate simulation and real-robot ROS 2 domains, set ROS_DOMAIN_ID when starting the container (default 0):
Common run.sh commands¶
build Build the image
start Create/start the container
stop Stop the container (stops the bridge first)
restart Restart the container
bash Enter the container shell (ROS 2 sourced automatically)
rm Remove the container
init Install dependencies, build ROS 2 messages and the C++ image bridge
check Verify the environment
bridge-start Start the ROS2-ZMQ bridge separately
bridge-stop Stop the bridge separately
Troubleshooting¶
bash run.sh checkfails: follow the prompt and rerunbash run.sh init; verifynumpy<2and thatbodyctrl_msgsplus the robot-specific SDK ROS 2 message packages are available.- X11 unavailable / simulation window not shown: run
xhost +on the host and check thatDISPLAYis forwarded; on a headless server useUBT_SIM_LOAD_ONLY=1for preview only.
Next steps¶
- Platform overview - back to the simulation platform overview
- Walker TienKung Pro - Walker TienKung Pro simulation guide
- Walker TienKung Dex - single-arm dexterous manipulation simulation
- Walker S2 EDU - Walker S2 EDU simulation guide
- Walker C1 EDU - Walker C1 EDU simulation guide