This project is a template for a new FSM controller project wihtin mc_rtc
It comes with:
- a CMake project that can build a controller in mc_rtc, the project can be put within mc_rtc source-tree for easier updates
- clang-format files
- automated GitHub Actions builds on three major platforms
- Renaming the controller from
NewFSMController
toMyController
. In a shell (Git Bash on Windows, replace sed with gsed on macOS):
sed -i -e's/NewFSMController/MyController/g' `find . -type f`
git mv src/NewFSMController.cpp src/MyController.cpp
git mv src/NewFSMController.h src/MyController.h
git mv src/states/NewFSMController_Initial.cpp src/states/MyController_Initial.cpp
git mv src/states/NewFSMController_Initial.h src/states/MyController_Initial.h
git mv etc/NewFSMController.in.yaml etc/MyController.in.yaml
-
You can customize the project name in vcpkg.json as well, note that this must follow vcpkg manifest rules
-
Build and install the project
-
Run using your mc_rtc interface of choice, and setting
Enabled
toMyController