Code Monkey home page Code Monkey logo

ardupilotmega-ros's Introduction

ardupilotmega-ros

ROS packages to connect to ardupilotmega using mavlink protocol

This package was generated using this mavlink to ROS generator: https://github.com/posilva/mav2rosgenerator

Installation

If you are in a deb based distro you can run this script (https://bitbucket.org/pmosilva/rosfs) to install ROS (comm) from source in custom folder (I will improve this script soon to support other distros or compile from source all dependencies ;) )

  1. Clone this repository
  2. Copy the packages into a ROS workspace 'src' folder
  3. Run catkin_make inside workspace
  4. Launch a ROS core
  5. Connect Radio Serial device to the PC
  6. Edit mavlink_device/scripts/mavlink_device_node.py and configure your serial port settings (device, baudrate)
  7. Run mavlink_device_node.py node ( you must source your setup.bash to load ROS environment variables)
  8. Execute "rosrun mavlink_ardupilotmega mavlink_ardupilotmega_node"
  9. Open a shell and execute "rostopic echo /from_mav_heartbeat" ( you must source your setup.bash to load ROS environment variables)

New Installation mode

This is a automated and integrated installation (for deb distros: tested on debian stable/testinf and ubuntu 14.04) of a minimal ROS environment with this package installed

  1. git clone https://bitbucket.org/pmosilva/rosfs
  2. cd rosfs
  3. ./ros_install.sh $PWD/ardupilotmega
  4. source $PWD/ardupilotmega/sysroot/opt/ros/hydro/setup.bash
  5. launch master in background: roscore &
  6. rosrun mavlink_ardupilotmega mavlink_ardupilotmega_node
  7. In other shell source the same setup.bash file and execute: rostopic list

At this point you will see all the topics to handle mavlink messages for ardupilotmega

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.