GithubHelp home page GithubHelp logo

free_dog_sdk_cpp's Introduction

Unitree Go 1 Free Dog SDK CPP

Welcome to the repository designed for general users without needing "Krypton gold."

This repository serves as an experimental platform and should be utilized primarily for educational purposes or non-commercial development.

We thank Bin4ry for their invaluable contributions to the protocol analysis and the Python iteration.

Note!!

  1. Only test on go 1 air.
  2. But it can be extended to other robots.
  3. Thanks, Bin4ry for the Python version.

Current State

  1. Testing with legged_control Legged_controller(3Q qiayuan)
  2. Testing wired, Wi-Fi high- and low-level control. especially torque tracking control.
  3. Without any safety, you can clip with your controller with urdf limits.
  4. I fixed some bugs in the Python version; it can be used for RL.

How to use?

  1. I made it as a ROS pkg; you can delete the ROS-relative things, and then you can use it anywhere you wanna.
  2. Clone into your ROS ws. And catkin build
  3. If you used wired, you should set up your IP just like 192.168.123.xxx
  4. Then catkin build again and source devel/setup.bash
  5. rosrun fdsc_utils fdsc_utils_pushup_node (This is most safe motion. If you use wireless with robot please modify connection settings as "LOW_WIFI_DEFAULTS")

Examples:

  1. High-level
    1. robot stand up and down
    2. rotation walk with trot
    3. force stand and walk
  2. Low level
    1. joint pd control
    2. joint velocity control
    3. joint tau control
    4. joint tau tracking control

Before you run low-level control. You should use the RC and do the following cmd sequence:

L2 + B
L1 + L2 + START

The IP config and meanings in the file "unitreeConnectBoost.hpp":

    const std::string localIpWifi = "192.168.12.222"; // Your PC wifi will give by the DHCP wifi:pwd 00000000
    const std::string localIpEth = "192.168.123.12"; // Your PC
    const std::string addrWifi = "192.168.12.1"; // wifi pi
    const std::string addrLow = "192.168.123.10"; // Nano can't connect
    const std::string addrHigh = "192.168.123.161"; // Pi wired IP
    const std::string sim_addr = "127.0.0.1"; // Local

Demos:

LICENSE

MIT LICENSE

Referneces

  1. Bin4ry Python Version(Many Thks)
  2. legged_controller

free_dog_sdk_cpp's People

Contributors

linzhuyue 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.