Skip to content

jrl-umi3218/mc_go1

Repository files navigation

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:

  • Go1 is a C++ robot module in the src folder
  • Go1YAML 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 Go1 to Go1. In a shell (Git Bash on Windows, replace sed with gsed on macOS):
sed -i -e's/Go1/Go1/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/Go1.in.cpp src/Go1.in.cpp
git mv src/Go1.h src/Go1.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 Go1

About

Robot module for the unitree Go1 robot

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •