Applications
Where the Cyberiada state machines are used: embedded systems, ROS2 robots, games and simulators, language models.
Embedded systems
In Cyberiada IDE the behaviour of a device is drawn as a diagram, and the environment itself generates the code, compiles it and flashes the controller: Arduino, CyberBear, the TJC-HSM boards on STM32, TJC-IR. The code is generated by lapki-compiler and flashed by lapki-flasher. From CyberiadaPro the same build is run by the Lapki Compiler plugin and other code generators.
Where to start — the Arduino course.
Robotics
The HSM-ROS2 stack turns a diagram into a ROS 2 (Jazzy) node that drives a robot through a common interface:
diagram ─▶ hsm_robot_ros_generator ─▶ ROS 2 node ─▶ hsm_robot_ros_api ─▶ driver ─▶ robot or simulator
- hsm_robot_ros_generator generates the node in Python. In CyberiadaPro the HSM ROS2 plugin checks the diagram, builds the package and runs the tests.
- hsm_robot_ros_api and hsm_robot_ros_interfaces are the robot interface: movement, orientation, actions — methods and events.
- hsm_robot_ros_tests are the end-to-end tests from the diagram to the simulator.
- turtle_driver is a simple driver of the turtlesim turtle for the first experiments.
Games and simulators
- Berloga: Apiary Defence. The players program the drones of the game — with HSM diagrams in the embedded editor or with Cyberiada IDE.
- Unity. The CyberiadaLogic package and the ReferenceEditor bring the HSM diagrams into Unity projects.
- Space missions. The Orbita simulator models the flight of a space probe from the orbit to the landing; the flight program can be given as an HSM diagram.
Language models
cybersphere-hsm-maker draws a diagram from a description of the system in a natural language and checks it until it is right. The finished diagram can be opened in CyberiadaPro, corrected or even turned into code.