Skip to content

Latest commit

 

History

History
29 lines (20 loc) · 1.04 KB

README.md

File metadata and controls

29 lines (20 loc) · 1.04 KB

mc_rtc new controller template

This project is a template for a new 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

Quick start

  1. Renaming the controller from NewController to MyController. In a shell (Git Bash on Windows, replace sed with gsed on macOS):
sed -i -e's/NewController/MyController/g' `find . -type f`
git mv src/NewController.cpp src/MyController.cpp
git mv src/NewController.h src/MyController.h
git mv etc/NewController.in.yaml etc/MyController.in.yaml
  1. You can customize the project name in vcpkg.json as well, note that this must follow vcpkg manifest rules

  2. Build and install the project

  3. Run using your mc_rtc interface of choice, and setting Enabled to MyController