Simplifies the RobotNode build process by linking directly to system gpiod libraries instead of including a local copy. This reduces redundancy and ensures compatibility with the system's gpiod installation.
Adds a deployment script for easier deployment to the robot, streamlining the update process.
Also introduces a script to automatically fix symlinks during cross-compilation, ensuring that links resolve correctly on the target system.
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.
Replaces mutex with atomic booleans in DixonNodeState for improved thread safety. This eliminates the need for explicit locking in the connected_ and brainRunning_ accessors, reducing overhead and potential for deadlocks.
Updates version file.
Renames the executable to lowercase and updates the corresponding dependency links in CMakeLists.txt.
Introduces a version file to manage the project's version.
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 heartbeat mechanism to the robot node using GPIO.
This allows for external monitoring of the node's active state.
The heartbeat is implemented using a GPIO pin that toggles
at a regular interval, indicating that the system is running.
Updates CMakeLists to link the project with gpiod libraries
staged locally.
Adds .gitignore entries for local dependencies and PC build directories.
Updates the heart beat mechanism to use a prepared request to control the GPIO line, improving efficiency and code clarity.
Removes the direct line request in the beat function.
Switches to using pkg-config to manage dependencies and linker flags.
Sets up the initial project structure for the Dixon robot,
including core components and build configurations.
This commit lays the foundation for future development by:
- Adding necessary `.idea` files for IDE configuration,
including `.gitignore`, `aws.xml`, `modules.xml`, `vcs.xml`,
`editor.xml`, and `encodings.xml`
- Creating `Heart` component for managing heart beat with GPIO.
- Setting up CMakeLists.txt to define project dependencies and configurations,
including specifying C++20 standard and linking necessary libraries.
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.