Giter Club home page Giter Club logo

quadruped-robot-simulation-and-design's Introduction

quadruped-robot-simulation-and-design

This MATLAB code simulates the walking motion of a quadruped robot based on a trajectory that is solved from an equation using the fsolve function. The trajectory is derived from the kinematics of the robot.

Overview

This code demonstrates the walking motion of a quadruped robot in two different scenarios: a one-step move and a standing/sitting move. The robot's leg lengths, width, and other parameters are defined, and joint angles are calculated using kinematic equations.

Files

  • animation_2D.m: Simulates a one-step move.
  • animation_2D_poshtiban.m: Simulates a standing and sitting move.
  • root2d.m: Kinematic inverse function used in the fsolve solver.

Usage

  1. Open MATLAB.
  2. Run the desired code file, either animation_2D.m or animation_2D_poshtiban.m.

Parameters

  • t_to: Duration of the motion.
  • L1 and L2: Lengths of the two segments of each leg.
  • d: Width of the robot.
  • t: Time vector for simulation.
  • angles: Array to store joint angles for each leg.
  • position: Array to store positions of different parts of the robot's legs.
  • teta0: Initial joint angles.
  • X2 and X3: Arrays to store joint angles over time.
  • x_03: Position component used in trajectory calculation.

Visualization

The code visualizes the robot's walking motion by plotting the positions of the robot's legs at each time step. It uses the calculated joint angles and positions to draw the robot's legs as they move.

Simulation Results

Standing and Sitting Move

Simulation - Standing and Sitting Move

Walking

Simulation - Walking

Real Results

Standing and Sitting Move

Real - Standing and Sitting Move

Walking

Real - Walking

Note

This code is intended for educational purposes and serves as a simplified simulation of quadruped robot motion. To run this code, make sure you have MATLAB installed on your system.

Arduino Integration

Arduino files for controlling and running the physical robot are available in the 8dof... directory. These files are used to interface with the robot's hardware components and execute the walking motions generated by this simulation.

quadruped-robot-simulation-and-design's People

Contributors

mohammadaliamiri1379 avatar

Watchers

 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.