Skip to content

This repository contains pixhawk based controller codes for autonomous tracking of a minimum snap trajectory using an intel aero drone

Notifications You must be signed in to change notification settings

ashwinvk94/px4_quad_controllers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

83 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

px4 controllers

This repository contains controllers which can be used in unison with mavros and the px4 stack in order to achieve minimum snap trajectory tracking. The position feedback will be done using the vicon system.

Authors: Ashwin Varghese Kuruttukulam
Maintainer: Ashwin Varghese Kuruttukulam Affiliation: Perception and Robotics Group, Unversity of Maryland

Installation Instructions (Ubuntu)

  1. Install the repository and its dependencies (with rosinstall):
sudo apt-get install ros-kinetic-mavros ros-kinetic-mavros-extras
  1. Set up a catkin workspace (if not already done):
mkdir -p ~/catkin_ws/src
cd ~/catkin_ws
catkin init
cd src 
git clone https://github.com/ashwinvk94/px4_quad_controllers
catkin_make

Notes

Always start mavros before using any of the functionalities of this repo. On the intel aero drone, this can be done by running the following command on a terminal:

rosrun mavros mavros_node _fcu_url:=tcp://127.0.0.1:5760 _system_id:=2

Also, you can ssh into the aero drone using the following command: ''' ssh [email protected] ''' where "Aero" is the user_name of the computer

Usage

To the run the attitude+thrust controller inbuilt in the px4 firmware simply launch attitude_thrust_controller using the command: ''' roslaunch px4_quad_controllers attitude_thrust_controller.launch '''

This will start publishing the the attitude and thrust setpoints to the the topic "/mavros/setpoint_raw/attitude"
Now if you move the flight mode to "OFFBOARD" mode, then it will go that the attitudes and thrust set as per the rosparams. Default values are (0,0,0,0).

About

This repository contains pixhawk based controller codes for autonomous tracking of a minimum snap trajectory using an intel aero drone

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •