Giter Club home page Giter Club logo

installation_px4_mavros's Introduction

Unmaned Aerial Vehicles in JdeRobot with ROS

The new Hardware Abstraction Layer (HAL) for working in robotic applications for Unmanned Aerial Vehicles (UAVs) in JdeRobot is based on using ROS/Gazebo and:

  • PX4 as main flight control software.
  • MavROS as MAVLink-based communication node between ROS and the PX4 flight stack. It also provides an UDP bridge for MAVLink Ground Control Stations

Installation instructions

You can use this bash script for from dev.px4.io for setting up ROS Kinetic/Gazebo + PX4 + MavROS on Ubuntu 16.04 (Xenial). It also installs some common dependencies libraries and tools

Alternatively, it can be done step by step:

ROS Kinetic and Gazebo 7

ROS must be installed first. Please follow the official instructions to install ROS Kinetic (that includes Gazebo 7 by default) in Ubuntu 16.04 (Xenial)

MavROS

Install MavROS package and its required dependencies following these installation instructions. Binary installation (deb packages) is recommended.

PX4 SITL

Detailed instructions about the PX4 toolchain installation can be found here. In summary, you must first:

After that, download the last PX4 Firmware from its Github repository:

git clone https://github.com/PX4/Firmware.git 

Build the PX4 stack for SITL in Gazebo. You can find more info about building PX4 for different boards, models and variants here.

cd <Firmware>
make px4_sitl_default gazebo
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

PX4 SITL + MavROS launch files

A default launch file for launching PX4 SITL + MavROS + Gazebo is included in the MavROS package:

roslaunch px4 mavros_posix_sitl.launch 

It will load the default 3DR Iris model in Gazebo:

3DR Iris

For launching the 3DR Solo model, use:

roslaunch px4 mavros_posix_sitl.launch vehicle:=solo 

3DR Solo

Adding a front camera to the simulated model

If you need to simulate a quadcopter with front RGB camera, you can launch the iris_fpv_cam model

roslaunch px4 mavros_posix_sitl.launch vehicle:=iris_fpv_cam

3DR Iris FPV Cam

Note: Sometimes there are problems with launching the former vehicle, and Gazebo crashes. There is already a solutionn that would be addressed here in the near future.

Hardware compatibility

This HAL is compatible with any UAVs including a Pixhawk flight controller or any other board flashed with the PX4 stack.

  • A list of compatible boards can be found here
  • Some complete UAVs run PX4 "out of the box". There is a list here

installation_px4_mavros's People

Contributors

diegomrt avatar

Stargazers

Gerardo Martino avatar

Watchers

JoseMaria Cañas avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.