GithubHelp home page GithubHelp logo

wuyou33 / mrs_uav_controllers Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ctu-mrs/mrs_uav_controllers

1.0 0.0 0.0 2.15 MB

Tracking controllers for UAVs in ROS, part of the "uav_core" package.

Home Page: https://github.com/ctu-mrs/uav_core

License: BSD 3-Clause "New" or "Revised" License

CMake 2.69% Python 2.53% C++ 94.01% Shell 0.78%

mrs_uav_controllers's Introduction

MRS UAV Controllers

Build status Build Status Build Status

Purpose of a controller within the MRS control pipeline

  • receiving an all-state reference from reference trackers
  • controlling the states of the UAV by outputting a desired angular rate (or desired orientation) and desired thrust

Available controllers

  • "SE(3) controller"
    • geometric state feedback in SE(3) capable of precise reference tracking and fast maneuvers
    • pros: precise control, fast response, fast convergence
    • cons: sensitive to measurement noise, requires feasible and smooth reference, needs to be tuned
    • originally published in: Lee, et al., "Geometric tracking control of a quadrotor UAV on SE(3)", CDC 2010, link
  • "MPC controller"
    • SO(3) force tracking + Linear MPC for acceleration feedforward
    • pros: robust control, immune to measurement noise and reference infeasibilities
    • cons: slow convergence, only for slow speeds (< 2 m/s), may have large control errors while tracking motion
    • briefly described in: Petrlik, et al., "A Robust UAV System for Operations in a Constrained Environment", RA-L 2020, link
  • "Failsafe controller"
    • feedforward controller for landing without a state estimator
    • relies on the Pixhawk's attitude controller for leveling
    • is triggered in case of emergency
    • gradually decreases thrust while keeping the UAV leveled

Controller interface

The controllers are compiled as ROS plugins (http://wiki.ros.org/pluginlib) with the interface defined by the control manager. A controller from any ROS package can be loaded dynamically by the control manager without it being present during control manager's compile time. Loaded controllers can be switched by the control manager in mid-flight, which allows safe testing of new controllers and adds flexibility the MRS UAV system.

Loading controllers to control manager

Controllers are defined in controller.yaml (example). Each entry such as

Se3Controller:
  address: "mrs_uav_controllers/Se3Controller"
  namespace: "se3_controller"
  eland_threshold: 1.5 # [m], position error triggering eland
  failsafe_threshold: 2.5 # [m], position error triggering failsafe land
  odometry_innovation_threshold: 1.5 # [m], position odometry innovation threshold

creates an instance of a controller, in this case mrs_uav_controllers/Se3Controller is loaded under the alias Se3Controller. Multiple instances are allowed and are used to introduce the same controller with various configurations that can be switched in mid-flight. Once the controller alias is defined within controllers.yaml, it needs to be part of the controllers list within control_manager.yaml (example) config:

# - list of names of dynamically loaded controllers
controllers : [
  "Se3Controller",
  "MpcController",
  "FailsafeController",
  "EmergencyController",
]

Only the controllers within this list are actually loaded. Switching to a controller with the alias Se3Controller is done by calling a service:

rosservice call /uav1/control_manager/switch_controller Se3Controller

mrs_uav_controllers's People

Contributors

amaler avatar danhert avatar klaxalk avatar matemat13 avatar mergify[bot] avatar penickar avatar petrapa6 avatar petrlmat avatar spurnvoj avatar stibipet avatar wingrs avatar

Stargazers

 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.