How robotics-mechatronics-uma/rescue-dt works
RESCUE-DT is a ROS 2–Unity digital-twin system for search-and-rescue robotics. Its documented workflow is teleoperation and robot/sensor data over ROS 2, bridged through a TCP endpoint to Unity for simulation and real-time visualization. The repository tree contains ROS packages and the endpoint, but not the Unity project or the documented UAV, human-agent, and rover Unity scripts; those capabilities are therefore represented as one external Unity system. Relationships among endpoint internals follow the shown excerpts and SOURCE INDEX; links based only on the README are identified by its documented integration statements.
Main entry points: server.py TCP endpoint server · client.py Client protocol · communication.py ROS communication base · unity_service.py Unity-backed service
Components 20
Robot control
- Keyboard teleop
ros2_ws/install/teleop_twist_keyboard/lib/python3.10/site-packages/teleop_twist_keyboard/teleop_twist_keyboard.py - Teleop node
ros2_ws/install/teleop_pkg/lib/python3.10/site-packages/teleop_pkg/teleop_node.py - ROS command topics
ROS sensing
- Camera subscriber
ros2_ws/install/camera_subscriber/lib/python3.10/site-packages/camera_subscriber/camera_subscriber.py - Lidar subscriber
ros2_ws/install/lidar_subscriber/lib/python3.10/site-packages/lidar_subscriber/lidar_subscriber.py - GPS subscriber
ros2_ws/install/fixposition_pkg/lib/python3.10/site-packages/fixposition_pkg/gps_subscriber.py - IMU subscriber
ros2_ws/install/fixposition_pkg/lib/python3.10/site-packages/fixposition_pkg/imu_subscriber.py - Odometry subscriber
ros2_ws/install/fixposition_pkg/lib/python3.10/site-packages/fixposition_pkg/odometry_subscriber.py - Sensor ROS topics
ROS TCP bridge
- TCP endpoint server
ros2_ws/src/ROS-TCP-Endpoint-main-ros2/ros_tcp_endpoint/server.py - Client protocol
ros2_ws/src/ROS-TCP-Endpoint-main-ros2/ros_tcp_endpoint/client.py - TCP sender
ros2_ws/src/ROS-TCP-Endpoint-main-ros2/ros_tcp_endpoint/tcp_sender.py - ROS communication base
ros2_ws/src/ROS-TCP-Endpoint-main-ros2/ros_tcp_endpoint/communication.py - ROS publisher
ros2_ws/src/ROS-TCP-Endpoint-main-ros2/ros_tcp_endpoint/publisher.py - ROS subscriber
ros2_ws/src/ROS-TCP-Endpoint-main-ros2/ros_tcp_endpoint/subscriber.py - ROS service client
ros2_ws/src/ROS-TCP-Endpoint-main-ros2/ros_tcp_endpoint/service.py - Unity-backed service
ros2_ws/src/ROS-TCP-Endpoint-main-ros2/ros_tcp_endpoint/unity_service.py - Protocol exceptions
ros2_ws/src/ROS-TCP-Endpoint-main-ros2/ros_tcp_endpoint/exceptions.py
Digital twin
- Unity digital twin
Other components
- Operator
Connections 24
- Operator → Keyboard teleop: provides input
- Keyboard teleop → ROS command topics: publishes commands
- Teleop node → ROS command topics: controls robot
- Camera subscriber → Sensor ROS topics: publishes data
- Lidar subscriber → Sensor ROS topics: publishes data
- GPS subscriber → Sensor ROS topics: publishes data
- IMU subscriber → Sensor ROS topics: publishes data
- Odometry subscriber → Sensor ROS topics: publishes data
- Sensor ROS topics → TCP endpoint server: bridges topics
- ROS command topics → TCP endpoint server: bridges topics
- TCP endpoint server → Client protocol: creates handlers
ros2_ws/src/ROS-TCP-Endpoint-main-ros2/ros_tcp_endpoint/server.py - TCP endpoint server → TCP sender: configures sender
ros2_ws/src/ROS-TCP-Endpoint-main-ros2/ros_tcp_endpoint/server.py - TCP endpoint server → ROS publisher: registers publisher
ros2_ws/src/ROS-TCP-Endpoint-main-ros2/ros_tcp_endpoint/server.py - TCP endpoint server → ROS subscriber: registers subscriber
ros2_ws/src/ROS-TCP-Endpoint-main-ros2/ros_tcp_endpoint/server.py - TCP endpoint server → ROS service client: registers service
ros2_ws/src/ROS-TCP-Endpoint-main-ros2/ros_tcp_endpoint/server.py - TCP endpoint server → Unity-backed service: registers service
ros2_ws/src/ROS-TCP-Endpoint-main-ros2/ros_tcp_endpoint/server.py - Client protocol → Protocol exceptions: raises errors
ros2_ws/src/ROS-TCP-Endpoint-main-ros2/ros_tcp_endpoint/client.py - TCP sender → Client protocol: serializes messages
ros2_ws/src/ROS-TCP-Endpoint-main-ros2/ros_tcp_endpoint/tcp_sender.py - ROS publisher → ROS communication base: extends base
ros2_ws/src/ROS-TCP-Endpoint-main-ros2/ros_tcp_endpoint/publisher.py - ROS subscriber → ROS communication base: extends base
ros2_ws/src/ROS-TCP-Endpoint-main-ros2/ros_tcp_endpoint/subscriber.py - ROS service client → ROS communication base: extends base
ros2_ws/src/ROS-TCP-Endpoint-main-ros2/ros_tcp_endpoint/service.py - Unity-backed service → ROS communication base: extends base
ros2_ws/src/ROS-TCP-Endpoint-main-ros2/ros_tcp_endpoint/unity_service.py - Unity-backed service → Client protocol: uses protocol
ros2_ws/src/ROS-TCP-Endpoint-main-ros2/ros_tcp_endpoint/unity_service.py - TCP endpoint server → Unity digital twin: exchanges TCP data