Coder Social home page Coder Social logo

zainkhan-afk / quadrupedal-robot-gait-visualization Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 14.67 MB

A visualization/simulation of quadrupedal robot gaits using a custom OpenCV renderer.

Python 100.00%
quadrupedal-robots robot-simulation simulation gait-simulation quadruped-gait quadrupedal-robot-gait robot-gait quadrupedal-simulation

quadrupedal-robot-gait-visualization's Introduction

Quadrupedal-Robot-Gait-Visualization

This repository uses the OpenCV-3D-Renderer to create a quadrupedal robot gait visualization. Primitive shapes are used to create a robot in the rederer and then the robot legs are moved according to the gait selected. The gif below shows a sample trotting gait.

Trot Gait Gif

Robot

The robot has been modelled after the MiT Mini Cheetah. Each robot leg contains 3 joints and the legs are moved by specifying a point which the robot foot needs to reach in cartesian space. An Inverse Kinematics (IK) model of the robot leg takes in the desired robot foot position in cartesian space and calculates the joint positions require to move the foot to the required position.

The robot foot follows a half ellipse trajecotry. Each robot leg has a stance and flight period which is independent of all the other robot legs. The combined effect of all the individual leg stance and flight periods results in different kinds of gaits which can be seen below:

Trotting Gait

Galloping Gait Gif

Galloping Gait

Galloping Gait Gif

Walking Gait 1

Walking Gait Gif

Walking Gait 2

Walking Gait Gif

Whole body IK model has been derived which allows for body movements without moving the robot legs.

Robot Twisting In place Gif

Robot Gait Scheduler

The leg stance and flight periods can be changed manually using the gait scheduler GUI.

Gait Scheduler GUI

The sliders can be moved for each leg to change the leg stance and flight timings.

Running the Repository

git clone --recurse-submodules https://github.com/zainkhan-afk/Quadrupedal-Robot-Gait-Visualization.git

Or

git clone https://github.com/zainkhan-afk/Quadrupedal-Robot-Gait-Visualization.git

git submodule update --init

To run the code

python main.py

quadrupedal-robot-gait-visualization's People

Contributors

zainkhan-afk avatar

Stargazers

 avatar

Watchers

 avatar  avatar

quadrupedal-robot-gait-visualization's Issues

Omnidirectional walking

Thank you for providing this interesting visualization tool. I wonder whether it's possible (or how easy to extend the current code) to achieve omnidirectional walking, i.e., the quadrupedal robot can not only move forward, but also left right, or diagonally.

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.