All Projects → ros2-realtime-demo → Pendulum

ros2-realtime-demo / Pendulum

Licence: apache-2.0
ROS, ROS2, real-time, control, pendulum

Projects that are alternatives of or similar to Pendulum

Ev3dev Lang Java
A project to learn Java and create software for Mindstorms Robots using hardware supported by EV3Dev & the LeJOS way.
Stars: ✭ 79 (+113.51%)
Mutual labels:  robotics, ros, raspberry-pi
Ros Academy For Beginners
中国大学MOOC《机器人操作系统入门》代码示例 ROS tutorial
Stars: ✭ 861 (+2227.03%)
Mutual labels:  robotics, ros, demo
Grl
Robotics tools in C++11. Implements soft real time arm drivers for Kuka LBR iiwa plus V-REP, ROS, Constrained Optimization based planning, Hand Eye Calibration and Inverse Kinematics integration.
Stars: ✭ 105 (+183.78%)
Mutual labels:  robotics, ros, real-time
Kimera Vio
Visual Inertial Odometry with SLAM capabilities and 3D Mesh generation.
Stars: ✭ 741 (+1902.7%)
Mutual labels:  robotics, real-time
Depth clustering
🚕 Fast and robust clustering of point clouds generated with a Velodyne sensor.
Stars: ✭ 657 (+1675.68%)
Mutual labels:  ros, real-time
Gibsonenv
Gibson Environments: Real-World Perception for Embodied Agents
Stars: ✭ 666 (+1700%)
Mutual labels:  robotics, ros
Champ
𓃡 Quadruped Robot based on MIT Cheetah I
Stars: ✭ 526 (+1321.62%)
Mutual labels:  robotics, ros
Fprime
F' - A flight software and embedded systems framework
Stars: ✭ 8,642 (+23256.76%)
Mutual labels:  raspberry-pi, real-time
Behaviortree.cpp
Behavior Trees Library in C++. Batteries included.
Stars: ✭ 793 (+2043.24%)
Mutual labels:  robotics, ros
Fourth robot pkg
4号機(KIT-C4)用リポジトリ
Stars: ✭ 7 (-81.08%)
Mutual labels:  robotics, ros
Quickmcl
QuickMCL - Monte Carlo localisation for ROS
Stars: ✭ 24 (-35.14%)
Mutual labels:  robotics, ros
Linorobot
Autonomous ground robots (2WD, 4WD, Ackermann Steering, Mecanum Drive)
Stars: ✭ 598 (+1516.22%)
Mutual labels:  robotics, ros
Autorally
Software for the AutoRally platform
Stars: ✭ 595 (+1508.11%)
Mutual labels:  robotics, ros
Ardupilot
ArduPlane, ArduCopter, ArduRover, ArduSub source
Stars: ✭ 6,637 (+17837.84%)
Mutual labels:  robotics, ros
Roborts
An open source software stack for Real-Time Strategy research on mobile robots
Stars: ✭ 592 (+1500%)
Mutual labels:  robotics, ros
Ros best practices
Best practices, conventions, and tricks for ROS. Do you want to become a robotics master? Then consider graduating or working at the Robotics Systems Lab at ETH in Zürich!
Stars: ✭ 799 (+2059.46%)
Mutual labels:  robotics, ros
Champ setup assistant
CHAMP Package Config Generator
Stars: ✭ 24 (-35.14%)
Mutual labels:  robotics, ros
Martypi
DEPRECATED - See new ROS integration. 2017 Marty RaspberryPi API by Robotical Ltd.
Stars: ✭ 11 (-70.27%)
Mutual labels:  robotics, raspberry-pi
Elevation mapping
Robot-centric elevation mapping for rough terrain navigation
Stars: ✭ 520 (+1305.41%)
Mutual labels:  robotics, ros
Ros comm
ROS communications-related packages, including core client libraries (roscpp, rospy, roslisp) and graph introspection tools (rostopic, rosnode, rosservice, rosparam).
Stars: ✭ 525 (+1318.92%)
Mutual labels:  robotics, ros

Inverted pendulum demo

Disclaimer

This is work in progress and should be considered just as a proof of concept on how to leverage ROS 2 features to use in real-time applications. Any feedback and help to improve the project is appreciated.

Foxy branch is under active development. The current status can be checked here: https://github.com/ros2-realtime-demo/pendulum/issues/35

Build status

Build Status License GitHub issues

Table of content

Project description

The aim of this project is to show the real-time capabilities using the ROS2 framework. This project is based on the previous work made by the Open Robotics. The project uses these packages as a base.

This is the motivation of using an inverted pendulum for a real-time demo:

A classic example of a controls problem commonly solved by real-time computing is balancing an inverted pendulum. If the controller blocked for an unexpectedly long amount of time, the pendulum would fall down or go unstable. But if the controller reliably updates at a rate faster than the motor controlling the pendulum can operate, the pendulum will successfully adapt react to sensor data to balance the pendulum.

A more detailed description of demo the project design be found here: Design Article

Install instructions

Several ways to install the pendulum demo project are provided depending on the user needs.

  • ADE based installation: This provides a pre-configured Docker image with everything ready to be used. This is the recommended option to quickly test the demo. It is also useful to have development environment to add new features.
  • Installation from source: provides instructions to build all the required ROS 2 packages from source.
  • Crosscompilation: provides instructions to crosscompile the demo for an embedded device.
  • Pre-configured Raspberry PI image: provides a Raspberry PI with everything configured in a Linux Real-time (RT-PREEMPT patch).

How to run the demo

Source your workspace

If installed as an ADE image:

source /opt/ros/foxy/setup.bash

If installed from source:

cd ~/pendulum_ws
source ./install/setup.bash

Launch the demo

A complete explanation of all the possible options to run the demo can be found in the tutorial document:

For a quick test, launch the demo with rviz enabled:

ros2 launch pendulum_bringup pendulum_bringup.launch.py rviz:=True

If everything went well you should see the inverted pendulum being controlled in rviz:

pendulum_rviz

How to configure real-time settings

Instructions to configure the demo real-time settings can be found here.

How to measure real-time performance metrics

TODO

How to contribute

Make a fork using github, and make your changes. This project uses the same guidelines as all the officials ROS 2 packages, make sure that your code is compliant with cppcheck, uncrustify... After this, submit a PR and we will review as soon as possible.

Issues and feature request

Please, use the templates and make sure that you labeled them properly. Also, consider to open a PR to fix the issue or to implement a feature.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].