Code Monkey home page Code Monkey logo

inverted-pendulum-simulation's Introduction

Inverted-Pendulum-Simulation

Gazebo simulation of inverted pendulum to get started with gazebo and ros.

Refer to this tutorial to create a ROS plugin for Gazebo. Refer to this for building and and using msg files.

To use this example,

  • create a ROS package using catkin in workspace.
  • update package.xml and cmakelists.txt.
  • place all files in appropriate folders.
  • compile using catkin_make.
  • source setup.*sh file,

source devel/setup.bash

  • run,

roslaunch gazebo_tutorials inverted_pendulum_sim.launch

  • This should start Gazebo in paused mode and a Hello world message will be printed on the terminal.
  • Start a new terminal and run rqt_plot.
  • Use rqt_plot to select the variables from "inverted_pendulum_states" that needs to be printed.
  • Go to the Gazebo window and click on the Play button.

To view the states in text format, start a new terminal and run,

rosrun gazebo_tutorials gazebo_tutorial_listener

This runs a ros executable to read messages in the inverted_pendulum_states topic and displays it on the terminal.

inverted-pendulum-simulation's People

Contributors

rbv188 avatar

Stargazers

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