Coder Social home page Coder Social logo

new-robot-module's Introduction

mc_rtc new robot module template

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

This repository actually creates two robot modules:

  • NewRobotModule is a C++ robot module in the src folder
  • NewRobotModuleYAML is a YAML robot module in the yaml folder

They both re-create the JVRC1 robot module shipped with mc_rtc

Quick start

  1. Renaming the robot module from NewRobotModule to MyRobotModule. In a shell (Git Bash on Windows, replace sed with gsed on macOS):
sed -i -e's/NewRobotModule/MyRobotModule/g' `find . -type f`
  1. If you choose to build a C++ robot module
git rm -rf yaml
sed -i -e's/add_subdirectory(yaml)//' CMakeLists.txt
git mv src/NewRobotModule.in.cpp src/MyRobotModule.in.cpp
git mv src/NewRobotModule.h src/MyRobotModule.h
  1. If you choose to build a YAML robot module
git rm -rf src
sed -i -e's/add_subdirectory(src)//' CMakeLists.txt
  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 MainRobot to MyRobotModule

new-robot-module's People

Contributors

gergondet avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.