Code Monkey home page Code Monkey logo

teeterbot's Introduction

TeeterBot

TeeterBot is a self-balancing robot simulation model for ROS / Gazebo. The dimensions and mass of each component are easily configured using launch file arguments, so it is easy to adjust physical parameters to test robustness of control algorithms.

Teeterbot self-balancing

This repository is modified from the original teeterbot repository to implement a sel-balancing controller.

Example cases and visualization

Please note that the robot is purposely made to lose balance by driving it at high velocities or suddenly changing velocities -- this causes large deviations from the linear approximation and leads to loss of balance

out2.mp4

Instructions for running the code

  1. Clone this repository to your workspace
git clone [email protected]:othayoth/teeterbot.git
  1. Install the ROS Package teleop_twsit_keyboard. Follow instructions here
  2. Build your catkin workspace using command $ catkin_make
  3. Source your setup.bash file from your catkin workspace
source devel/setup.bash
  1. Run the following launch file
roslaunch teeterbot_gazebo teeterbot_control.launch
  1. In a separate terminal, start the teleoperation node
rosrun teleop_twist_keyboard teleop_twist_keyboard.py

Evaluating the solution

  • Use the instructions in terminal in which teleop_twist_keyboard is running to change the forward and turning speed of the robot.
  • At the default turning and forward speeds specified by the node, the robot moves stably, even when directions are changed.
  • Sudden stops and starts become unstable at pure forward translation beyond ~4.5 m/s (this may reduce when the robot simultaneously turns and translates)

Description of solution

Because the two wheeled inverted pendulum (TWIP) is a standard control problem and has been solved previously, I consulted existing solutions to implement the self- balancing for the robot. The specific solution is borrowed from the undergraduate thesis of Ashish Katariya. The document is available online.

teeterbot's People

Contributors

othayoth avatar robustify avatar

Watchers

James Cloos 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.