# M100_open
**Repository Path**: NEU_Conqueror/M100_open
## Basic Information
- **Project Name**: M100_open
- **Description**: No description available
- **Primary Language**: Python
- **License**: MIT
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 2
- **Forks**: 0
- **Created**: 2020-04-21
- **Last Updated**: 2022-04-18
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# This is a UAV gazebo simulator
> Conquerors M100 open source code
### Information
Thanks for the work of [Rotosr](https://github.com/ethz-asl/rotors_simulator) and [CrazyS](https://github.com/gsilano/CrazyS), we are happy to open this project as a tutorial for Conquerors team members.
### Dependances
1. Ubuntu18.04
2. ROS Melodic
3. gazebo 9
### How to install
- 0.[How to install dependances?](http://wiki.ros.org/melodic/Installation/Ubuntu)
- 1.Download the project and unzip src.zip
```sh
$ git clone https://gitee.com/NEU_Conqueror/M100_open.git
$ cd M100_open/
$ unzip src.zip
```
- 2.make sure that u have installed the gazebo plugs,such as Ros_melodic version
```sh
$ rosdep install --from-paths src -i
$ sudo apt install ros-melodic-rqt-rotors ros-melodic-rotors-comm ros-melodic-mav-msgs ros-melodic-rotors-control
$ sudo apt install ros-melodic-rotors-gazebo ros-melodic-rotors-evaluation ros-melodic-rotors-joy-interface
$ sudo apt install ros-melodic-rotors-gazebo-plugins ros-melodic-mav-planning-msgs ros-melodic-rotors-description ros-melodic-rotors-hil-interface
$ rosdep update
```
- 3.catkin make this project
```sh
$ catkin_make tips:pls waiting for a long time...
```
- 4.Add sourcing to your `.bashrc` or `.zshrc` file
```sh
$ echo "source ~/YOURPATH/M100_open/devel/setup.bash" >> ~/.bashrc
or if you use zsh
$ echo "source ~/YOURPATH/M100_open/devel/setup.zsh" >> ~/.zshrc
$ source ~/.bashrc
or
$ source ~/.zshrc
```
### How to use
- 5.Then you can use following command to run the code which will start an empty environment and neu_m100 flying automaticly after a while.
```
$ roslaunch rotors_gazebo neu_m100_start.launch
```
After this you can use keyboard to control the uav, this command will work:
```
$ roslaunch rotors_gazebo neu_m100_with_keyboard.launch
```