Git Product home page Git Product 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

ardupilotmega-ros's People

Contributors

posilva avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

ardupilotmega-ros's Issues

Wrong Subscribe Address

In the mavlink_arudpilotmega src folder in the cpp file in the main loop the line

from_mav_mav_raw_data_subscriber = n.subscribe("/from_mav_MAV_RAW_DATA", 10, from_mav_mav_raw_data_callback);

is incorrect. It should subscribe to the topic /from_mav_mav_raw_data. Just CAPS mistake.

Question

Does this currently support uplink from the ROS network to the vehicle employing MAVLINK (If it does is there an example message)? Or is this program at the moment only written to support the downlink messages (ie messages from the vehicle to the ground)? Thanks.

How to run mavlink_device_node.py ?

7- Run mavlink_device_node.py node ( you must source your setup.bash to load ROS environment variables)

How to run and I have a problem when I run rostopic echo /from_mav_heartbeat ?

root@byhackbay-ESPRIMO-P400:/dev# rostopic echo /from_mav_heartbeat
ERROR: Cannot load message class for [mavlink_common/HEARTBEAT]. Are your messages built?

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.