How grambos34/team-silaw-krpc-code works
This repository is a ROS-based KRPC simulator with user bot code and supporting runtime packages. The documented workflow is to start the simulator, which uses the C++ user template by default; users then view the running simulator in a browser. The tree also includes environment generation, judging, status, and flight-recording modules, plus ROS transform and vision utilities. Source excerpts are incomplete, so the graph omits most runtime wiring that is not explicitly documented or visible in the source index.
Main entry points: tf2_py.cpp TF2 Python binding · krpc7th-simulator Simulator · cv_bridge.cpp Image conversion core · generate_objects.py Environment generator
Components 25
Simulator runtime
- Simulator
krpc7th-simulator - Environment generator
krpc7th-simulator/rootfs/krpc/random_env_generator/generate_objects.py - Transform math
krpc7th-simulator/rootfs/krpc/random_env_generator/transformations.py - Judge
krpc7th-simulator/rootfs/krpc/judge_module/judge.py - Flight recorder
krpc7th-simulator/rootfs/krpc/flight_recorder_module/krpc_flight_recorder.py - Status indicator
krpc7th-simulator/rootfs/krpc/status_indicator_module/krpc_status_indicator.py
User and API
- KRPC API node
krpc7th-simulator/users/catkin_ws/src/krpc_api_server/scripts/krpc_api_node.py - Cheat sheet loader
krpc7th-simulator/users/catkin_ws/src/krpc_api_server/scripts/cheat_sheet_loader.py - C++ user bot
krpc7th-simulator/users/catkin_ws/src/krpc_user/src/user_template_node.cpp - Python user bot
krpc7th-simulator/users/catkin_ws/src/krpc_user/scripts/user_template.py
ROS transforms
- TF2 Python binding
krpc7th-simulator/docker/ros_python3_overlay/src/tf2_py/src/tf2_py.cpp - Transform buffer
krpc7th-simulator/docker/ros_python3_overlay/src/tf2_ros/src/tf2_ros/buffer.py - Buffer client
krpc7th-simulator/docker/ros_python3_overlay/src/tf2_ros/src/tf2_ros/buffer_client.py - Buffer interface
krpc7th-simulator/docker/ros_python3_overlay/src/tf2_ros/src/tf2_ros/buffer_interface.py - Transform broadcaster
krpc7th-simulator/docker/ros_python3_overlay/src/tf2_ros/src/tf2_ros/transform_broadcaster.py - Static broadcaster
krpc7th-simulator/docker/ros_python3_overlay/src/tf2_ros/src/tf2_ros/static_transform_broadcaster.py - Transform listener
krpc7th-simulator/docker/ros_python3_overlay/src/tf2_ros/src/tf2_ros/transform_listener.py
Vision utilities
- Python image bridge
krpc7th-simulator/docker/ros_python3_overlay/src/vision_opencv/cv_bridge/python/cv_bridge/core.py - Image conversion core
krpc7th-simulator/docker/ros_python3_overlay/src/vision_opencv/cv_bridge/src/cv_bridge.cpp - Endian conversion
krpc7th-simulator/docker/ros_python3_overlay/src/vision_opencv/cv_bridge/src/boost/endian/conversion.hpp - RGB color definitions
krpc7th-simulator/docker/ros_python3_overlay/src/vision_opencv/cv_bridge/include/cv_bridge/rgb_colors.h - Pinhole camera model
krpc7th-simulator/docker/ros_python3_overlay/src/vision_opencv/image_geometry/src/pinhole_camera_model.cpp - Stereo camera model
krpc7th-simulator/docker/ros_python3_overlay/src/vision_opencv/image_geometry/include/image_geometry/stereo_camera_model.h
Other components
- Simulator operator
- Browser
Connections 13
- Simulator operator → Simulator: starts
- Simulator → C++ user bot: uses by default
- Simulator operator → Browser: opens
- Environment generator → Transform math: uses
krpc7th-simulator/rootfs/krpc/random_env_generator/generate_objects.py - KRPC API node → Cheat sheet loader: references
krpc7th-simulator/users/catkin_ws/src/krpc_api_server/scripts/krpc_api_node.py - Transform buffer → TF2 Python binding: uses binding
- Buffer client → Buffer interface: inherits interface
krpc7th-simulator/docker/ros_python3_overlay/src/tf2_ros/src/tf2_ros/buffer_client.py - Transform listener → TF2 Python binding: uses binding
- Transform broadcaster → TF2 Python binding: uses binding
- Static broadcaster → TF2 Python binding: uses binding
- Python image bridge → Image conversion core: converts via
- Image conversion core → Endian conversion: uses
krpc7th-simulator/docker/ros_python3_overlay/src/vision_opencv/cv_bridge/src/cv_bridge.cpp - Pinhole camera model → Stereo camera model: supports model