Skip to content

DayDream999/mavros-auto_mission

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mavros-auto_mission

an simple auto mission for fixed wing aircraft to execute in gazebo with px4 sitl

Resources found at https://github.com/diegomrt/mavros_auto_mission?tab=readme-ov-file, but with some error and indentation problem, modified to be executable.

Dependencies

  1. px4 firmware
  2. QGroundControl
  3. mavros

runs on Ubuntu20.04 LTS environment, I notice that Ubuntu18 has some issue with QGroundControl, so may need extra work to work around it, but QGC only serves as monitoring method in this mission, not sure if it will run without actually having QGC

Run the mission

  1. first terminal launching the gazebo with px4 sitl
cd ${HOME}/repos/PX4-Autopilot
DONT_RUN=1 make px4_sitl_default gazebo
export PX4_HOME_LAT=40.091754
export PX4_HOME_LON=-3.695714
source ~/catkin_ws/devel/setup.bash    # (optional)
source Tools/setup_gazebo.bash $(pwd) $(pwd)/build/px4_sitl_default
export ROS_PACKAGE_PATH=$ROS_PACKAGE_PATH:$(pwd)
export ROS_PACKAGE_PATH=$ROS_PACKAGE_PATH:$(pwd)/Tools/sitl_gazebo
roslaunch px4 mavros_posix_sitl.launch vehicle:=plane_catapult
  1. second terminal execute the simple mission
roslaunch mavros_auto_mission mavros_mission_px4.launch

ongoing develop

trying to find an way to bypass the mavwp used for assigning waypoint via the mission wp.txt, but found the part interacting with mavros troublesome, not sure if I'll complete this part of development.

About

an simple auto mission for fixed wing aircraft to execute in gazebo with px4 sitl

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors