robosoft-ai/SMACC2
An Event-Driven, Asynchronous, Behavioral State Machine Library for ROS2 (Robotic Operating System) applications written in C++
What it solves
SMACC2 provides a systematic way to build complex robot control applications for multicomponent robots. It addresses the lack of C++ libraries for task-level behavioral state machines in ROS 2, which are necessary for industrial environments with strict real-time requirements.
How it works
It is an event-driven, asynchronous behavioral state machine library written in C++. It utilizes "orthogonals" to allow developers to manage multiple hardware components (like arms, grippers, and sensors) simultaneously and intuitively. The library also leverages compile-time validation (static state machine checking) to reduce the need for extensive runtime testing by catching errors during the build process.
Who it’s for
Robotics developers working with ROS 2 who are building complex, multi-component robots (e.g., robots with a mobile base, robotic arm, and multiple sensors) rather than simple, single-purpose robots.
Highlights
- ROS 2 Native: Built specifically for ROS 2, supporting topics, services, and actions out of the box.
- Orthogonal States: Simplifies the control of multiple independent hardware devices within a single robot.
- Static Checking: Uses compile-time validation to ensure state machine stability and safety.
- Reference Library: Includes a growing collection of pre-built, runnable state machine examples to jumpstart development.
- Client Library: Provides ready-made clients for ROS 2 Action and Service servers, including integration with Nav2.
- Runtime Analysis: Compatible with the SMACC2 Runtime Analyzer for visualization and debugging.
Related
- Project
- Project
- Project
- Project