Adds logging to heart component and signal handler for improved debugging.
Changes signal handler to set a "StopPending" state to allow the main loop to handle shutdown.
Fixes a potential thread join issue during shutdown.
Adds a basic logging system using std::clog with color codes for different log levels.
Refactors the main loop to use the logging system and improve readability.
Changes DixonNodeState to use atomic exchange for setting node status and logs status changes.
Removes the old main.cpp and adds a new one that uses a separate thread for signal handling.
Updates the CMakeLists.txt to link against gpiod and spdlog.
Moves version information into a version.txt file and creates a custom target to bump the version using a python script.
Adds signal handling for graceful shutdown via SIGINT and SIGTERM.
Updates the control loop to be interruptible, allowing for a clean exit when a shutdown signal is received.
Changes the node state management to use an enum for clarity and better control the run states (starting, running, stopping, stopped).
The heartbeat is stopped when the node is stopping or stopped.
Also updates the line request to force an inactive state when claiming the pin.
Also updates the version number.
Implements an automatic versioning system for the robot node,
utilizing a `version.txt` file and a Python script to increment
the patch version.
Integrates the version into the CMake build process to ensure
the version is displayed in the robot node's output.
Introduces a basic structure for the robot control node. This includes:
- A central brain component that manages the robot's logic.
- A state management system using a singleton to ensure thread-safe access to shared data.
- A simple main loop that can be started and stopped.
- Initial CMakeLists.txt and gitignore configurations.
This provides a foundation for implementing robot control logic.