This repository consistes of my ROS simulation Gazebo projects and presently consists only my latest simulation project on PX4 drone and will soon update it with my other past and future work.
https://www.youtube.com/watch?v=GJ4SjA8uW18&t=19s
(It is the work done by me and @pranav083)
First , task includes the setting up of PX4 Gazebo simulator. For that we first tested the PX4 on the MAVLINK and then load the same on the Gazebo Simulator . Then we go through the implementation of the same in the GAZEBO simulator using the ROS packages for MAVLINK and MAVROS . Step 1 : Follow the instructions on the PX4 official site. and do the complete setup for mavlink and mavros on your pc . Step 2 : Go to Firmware folder and source it with following commands :
Step 3 : Run command:
Further we build the drone_sim package that currently used for following tasks :
- Subscribes to the /mavros/state
- Publishes only to the UAV mode to /uav_mode using the two different message types
- Calling the services for arming the UAV and takeoff
.
├── CMakeLists.txt
├── package.xml
└── src
├── arming_call.py
├── mode_publisher.py
└── state_subscriber.py
https://dev.px4.io/master/en/ https://wiki.ros.org/mavros https://wiki.ros.org/mavlink