Coder Social home page Coder Social logo

weiqikim / champ Goto Github PK

View Code? Open in Web Editor NEW

This project forked from chvmp/champ

0.0 0.0 0.0 22.69 MB

๐“ƒก CHAMP Quadruped Robot Controller

License: BSD 3-Clause "New" or "Revised" License

CMake 5.49% C++ 71.57% Python 19.49% C 3.13% Shell 0.33%

champ's Introduction

champ Build Status

ROS Packages for CHAMP Quadruped Controller.

champ

CHAMP is an open source development framework for building new quadrupedal robots and developing new control algorithms. The control framework is based on "Hierarchical controller for highly dynamic locomotion utilizing pattern modulation and impedance control : implementation on the MIT Cheetah robot".

Core Features:

  • Fully Autonomous (using ROS navigation Stack).
  • Setup-assistant to configure newly built robots.
  • Collection of pre-configured URDFs like Anymal, MIT Mini Cheetah, Boston Dynamic's LittleDog, and SpotMicroAi.
  • Gazebo simulation environment.
  • Demo robot built using accessible components so you can build it from home.
  • Demo Applications like TOWR and chicken head stabilization.
  • Lightweight C++ header-only library that can run on both SBC and micro-controllers.

Supported Hardware:

LIDAR:

  • XV11 Lidar
  • RPLidar
  • YDLIDAR X4
  • Hokuyo (SCIP 2.2 Compliant)

IMU:

  • BNO080

SBC:

  • Nvidia Jetson Nano

    This should also work on Single Board Computers that support Ubuntu 16/18 capable of running ROS Navigation Stack.

ACTUATORS:

  • Digital Servos
  • Dynamixel AX12
  • Odrive Driven Brushless Motors - WIP

TESTED ON:

  • Ubuntu 16.04 (ROS Kinetic)
  • Ubuntu 18.04 (ROS Melodic)

1. Installation

1.1. Clone and install all dependencies:

sudo apt install -y python-rosdep
cd <your_ws>/src
git clone https://github.com/chvmp/champ
git clone https://github.com/chvmp/champ_teleop
cd ..
rosdep install --from-paths src --ignore-src -r -y

1.2. Build your workspace:

cd <your_ws>
catkin_make
source <your_ws/>/devel/setup.bash

2. Quick Start

You don't need a physical robot to run the following demos. If you're building a physical robot, you can find out more how to configure and run a new robot in step 3.

2.1. Walking demo in RVIZ:

2.1.1. Run the base driver:

roslaunch champ_config bringup.launch rviz:=true

2.1.2. Run the teleop node:

roslaunch champ_teleop teleop.launch

If you want to use a joystick add joy:=true as an argument.

2.2. SLAM demo:

2.2.1. Run the Gazebo environment:

roslaunch champ_config gazebo.launch 

2.2.2. Run gmapping package and move_base:

roslaunch champ_config slam.launch rviz:=true

To start mapping:

  • Click '2D Nav Goal'.

  • Click and drag at the position you want the robot to go.

    champ

  • Save the map by running:

    roscd champ_config/maps
    rosrun map_server map_saver
    

2.3. Autonomous Navigation:

2.3.1. Run the Gazebo environment:

roslaunch champ_config gazebo.launch 

2.3.2. Run amcl and move_base:

roslaunch champ_config navigate.launch rviz:=true

To navigate:

  • Click '2D Nav Goal'.

  • Click and drag at the position you want the robot to go.

    champ

3. Running your own robot:

TODO:

  • Hardware Documentation
  • Microcontroller based configuration

3.1. Generate robot configuration

  • First generate a configuration package using champ_setup_assistant. Follow the instructions in the README to configure your own robot. The generated package contains:

    • URDF path to your robot.
    • Joints and Links map to help the controller know the semantics of the robot.
    • Gait parameters.
    • Hardware Drivers.
    • Navigation parameters (move_base, amcl and gmapping).
    • Microcontroller header files for gait and lightweight robot description. This only applies to robot builds that use microcontroller to run the quadruped controller.

    As a reference, you can check out the collection of robots that have been pre-configured here. In the list are some of the popular quadruped robots like Anymal, MIT Mini Cheetah, Boston Dynamic's LittleDog, and SpotMicroAI. Feel free to download the configuration packages in your catkin workspaces 'src' directory to try.

  • Next, build your workspace so your newly generated package can be found:

    cd <your_ws>
    catkin_make
    

3.2.Base Driver:

This will run the quadruped controller and all sensor/hardware drivers:

roslaunch <myrobot_config> bringup.launch

Available Parameters:

  • rviz - Launch together with RVIZ. Default: false

  • has_imu- Set this to true if the robot has no IMU. This is useful when you want to view your newly configured robot. Basically, this tells the robot to use the pose commands from champ_teleop as the current pose of the robot. Take note that this is only useful for debugging the robot. It is recommended to place an IMU on a physical robot. Default: true.

  • lite - Always set this to true if you're using a microcontroller to run the algorithms. Default false.

Example Usage:

View your newly configured robot:

roslaunch <myrobot_config> bringup.launch rviz:true

Run real robot with a microcontroller:

roslaunch <myrobot_config> bringup.launch lite:=true

3.3. Creating a map:

The base driver described in 3.2 must be running to run gmapping and move_base.

Run gmapping package and move_base:

roslaunch <myrobot_config> slam.launch

To open RVIZ and view the map:

roscd champ_navigation/rviz 
rviz -d navigate.rviz

To start mapping:

  • Click '2D Nav Goal'.

  • Click and drag at the position you want the robot to go.

    champ

  • Save the map by running:

    roscd <myrobot_config>/maps
    rosrun map_server map_saver
    

3.4. Autonomous Navigation:

The base driver described in 3.2 must be running to run amcl and move_base.

Run amcl and move_base:

roslaunch <myrobot_config> navigate.launch

To open RVIZ and view the map:

roscd champ_navigation/rviz 
rviz -d navigate.rviz

To navigate:

  • Click '2D Nav Goal'.

  • Click and drag at the position you want the robot to go.

    champ

3.5 Running your robot in Gazebo

Run Gazebo and the base driver in simulation mode:

roslaunch <myrobot_config> gazebo.launch

champ's People

Contributors

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