Skip to content

Commit

Permalink
update README
Browse files Browse the repository at this point in the history
  • Loading branch information
kanishkegb committed Jan 1, 2021
1 parent 3cf5188 commit a67fb6f
Show file tree
Hide file tree
Showing 2 changed files with 83 additions and 5 deletions.
21 changes: 21 additions & 0 deletions License
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2020 Flight Dynamics and Control Lab

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
67 changes: 62 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,67 @@

This repository include Python codes for the position control a UAV in a Gazebo simulation environment, using [geometric controllers](https://github.com/fdcl-gwu/uav_geometric_control).

## Features
* Developed using Python
* Uses a geometric controller that works great with aggressive maneuvers
* Uses Gazebo as the physics engine
* Uses only minimal Gazebo/ROS codes so that if something breaks on ROS end in the future, it is easier to fix
* Has a nice GUI for controlling the UAV
* Can run your experiments, log data, and plot at the end of the trajectory at a click of a button
* Estimator, controller, and trajectory generators are in their own Python classes, if you need to test your own estimator, controller, or a trajectory, you only need to modify the respective class

![Landing](images/trajectory.gif)

### Why Python?
* Python makes developing/debugging easier and shorter (no compiling)
* Can easily find modules or libraries for different tasks

### Which controller is used for the UAV control?
* A geometric controller with decouppled-yaw attitude control is used
* The controller is published in:
```sh
@InProceedings{Gamagedara2019b,
title={Geometric controls of a quadrotor uav with decoupled yaw control},
author={Gamagedara, Kanishke and Bisheban, Mahdis and Kaufman, Evan and Lee, Taeyoung},
booktitle={2019 American Control Conference (ACC)},
pages={3285--3290},
year={2019},
organization={IEEE}
}
```
* Implementation of the same controller in C++ and Matlab can be found at [https://github.com/fdcl-gwu/uav_geometric_control](https://github.com/fdcl-gwu/uav_geometric_control)

### How to test my own controller?
* Make sure the desired trajectory generates the desired states required by your controller.
* Simply update the `Controller` class with your controller.
* Make sure your modified controller class outputs the variable force-moment vector (`fM`).

### Which estimator is used for the state estimation?
* The estimator defined in the following paper is implemented here (except the sensor bias estimation terms):
```sh
@InProceedings{Gamagedara2019a,
author = {Kanishke Gamagedara and Taeyoung Lee and Murray R. Snyder},
title = {Real-time Kinematics {GPS} Based Telemetry System for Airborne Measurements of Ship Air Wake},
booktitle = {{AIAA} Scitech 2019 Forum},
year = {2019},
month = {jan},
publisher = {American Institute of Aeronautics and Astronautics},
doi = {10.2514/6.2019-2377}
}
```
* Matlab implementation of the above controller can be found at [https://github.com/fdcl-gwu/dkf-comparison](https://github.com/fdcl-gwu/dkf-comparison).
* Note that the Matlab implementation has a delayed Kalman filter that has not been implemented here. Only the non-delayed parts inside `DelayedKalmanFilter.m` is utilized here.

### How to test my own estimator?
* Make sure your estimator provides the states for the UAV control, or if not create a separate estimator using the current estimator as the base class.
* Update the `Estimator` class with your estimator.

### How to test my own trajectory?
* Add your trajectory generation function in `Trajectory` class.
* Replace that with an unused mode in the `calculate_desired` function inside the `Trajectory` class.

## Dependencies
## Setting-up
### Dependencies
1. [ROS](http://wiki.ros.org/): this repository has been developed using ROS Melodic, on Ubuntu 18.04.
1. Python GTK libraries for GUI (not required if you opt to not to use the GUI)
```sh
Expand All @@ -16,7 +73,7 @@ This repository include Python codes for the position control a UAV in a Gazebo
1. Pandas
1. Matplotlib

## Setting-up the Repository
### Setting-up the repository
1. Clone the repositroy.
```sh
git clone https://github.com/fdcl-gwu/uav_simulator.git
Expand All @@ -27,7 +84,7 @@ This repository include Python codes for the position control a UAV in a Gazebo
git submodule update --init --recursive
```

## Setting-up the Plugins and Gazebo
### Setting-up the plugins and Gazebo
You only need to do the followings once (unless you change the Gazebo plugins)
1. Make the pluging.
```sh
Expand All @@ -40,7 +97,7 @@ You only need to do the followings once (unless you change the Gazebo plugins)
cd devel && source setup.bash && cd ../
```

##
### Runing the simulation environment
1. In the current terminal window, launch the Gazebo environment:
```sh
roslaunch uav_gazebo simple_world.launch
Expand All @@ -53,7 +110,7 @@ You only need to do the followings once (unless you change the Gazebo plugins)
![Terminal](images/running.gif)
## Tips
### Tips
1. Everytime you change the simulation environment, you have to kill the program, `catkin_make` and re-run it.
1. If you do not make any changes to the simulation environment, you only need to kill the Python program.
1. The UAV will re-spawn at the position and orientation defined in `reset_uav()` in `rover.py` when you run the Python code.

0 comments on commit a67fb6f

Please sign in to comment.