Conquerors M100 open source code
Thanks for the work of Rotosr and CrazyS, we are happy to open this project as a tutorial for Conquerors team members.
-
- Ubuntu18.04
- Ubuntu18.04
-
- ROS Melodic
- ROS Melodic
-
- gazebo 9
- gazebo 9
- 1.Download the project and unzip src.zip
$ 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
$ 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
$ catkin build
- 3.catkin make this project
$ catkin_make tips:pls waiting for a long time...
- 4.Add sourcing to your
.bashrc
or.zshrc
file
$ echo "source ~/M100_open/devel/setup.bash" >> ~/.bashrc
or if you use zsh
$ echo "source ~/M100_open/devel/setup.zsh" >> ~/.zshrc
$ source ~/.bashrc
or
$ source ~/.zshrc
- 5.Then u can use this command to run the code which will start an empty environment and neu_m100 will fly automaticly after a while.
$ roslaunch rotors_gazebo neu_m100_start.launch
After this you can use keyboard to control the uav, Maybe u should use this one:
$ roslaunch rotors_gazebo neu_m100_with_keyboard.launch