SafeKin is an advanced, high-performance safety kernel and kinematics observer designed for robotic arms running on ROS 2. Its goal is to provide reliable, highly performant geometric collision detection and predictive intervention via ros2_control safety filters.
Currently, SafeKin houses an efficient distance-computation engine (safekin_core) handling essential 3D primitives like Capsules and Oriented Bounding Boxes (OBBs).
- Safety Kernel: High-fidelity mathematical backend for generic
point-to-box,segment-to-segment, andcapsule-to-capsulelowest-distance checking. - Docker-Native Workflow: Pre-configured with a self-contained container environment. Zero host dependency installations required!
- Automated Documentation: Uses Doxygen to auto-generate and deploy code documentation to GitHub Pages.
(Upcoming Features)
- Kinematic Observer: Tracks robotic arm joint states at 1kHz.
ros2_controlSafety Filter: Predictive intervention nodes preventing self-collision and obstacles.- Gazebo Integration: Pre-configured environments for rigorous validation.
SafeKin/
├── .github/workflows/ # CI/CD pipelines (e.g., Doxygen deployment)
├── src/ # ROS 2 workspace sources
│ └── safekin_core/ # Core mathematics & collision algorithms
├── Dockerfile # Base Docker image config for ROS 2 Humble
├── docker-compose.yml # Volume mapping and container instantiation
└── Doxyfile # Doxygen API docs configuration
You only need Docker installed on your host machine to run this project!
-
Clone the repository:
git clone https://github.com/t-black4/SafeKin.git cd SafeKin -
Build and launch the Docker container using Docker Compose:
docker-compose up -d --build
-
Enter the container space to access the ROS 2 workspace:
docker exec -it ros-master bash(Inside the container, ensure you run
source /opt/ros/humble/setup.bashandcolcon buildto work with the core packages).
The source code is fully documented. When running on GitHub, Doxygen documentation is automatically compiled and hosted via GitHub Pages.
🔗 View SafeKin API Documentation
- Docker setup foundation heavily inspired by AntonSHBK/ROS-2-HUMBLE-DOCKER.