Skip to main content
# Mavlink to ROS API Generator Package

This is a python package that enable us to create a entire Mavlink API under ROS middleware

## Main Features

* Generate a ROS Package ( for the main definition and others for each include in definition file).
* Generate all msg files to enable to receive and send mavlink messages.
* Generate a node with callbacks, subscribers and callbacks and a socket client to enable to connect to the ardupilot SITL for testing purposes.
* Generate the mavlink code based on the definition file ready to be used by the generated package

## Distribution

* The generated code for ardupilot mega ROS Node Driver is [here] ( https://github.com/posilva/ardupilotmega-ros)
## Installation

* Install python-pip ie: sudo apt-get install python-pip
* Run command: sudo pip install --upgrade mav2rosgenerator
* Run command to see execution options: run_mav2ros.py -h

## Usage
* Run Command:
```bash
run_mav2ros.py -m $HOME/libs/mavlink-1.0.11/message_definitions/v1.0/ardupilotmega.xml -o $HOME/ros_workspace/src
```
## Future features
1. Create a configuration or semantic (up, down, both) in the direction of the mavlink messages to optimize callbacks and subscribers ( for UP, BOTH directions messages) and publishers (for DOWN direction)
Maybe mavlink definition file can contain a message tag attribute with direction:
```xml
<message id="11" name="SET_MODE" direction="UP">
```
Example:

* HEARTBEAT message direction = BOTH
* SET_MODE message direction = UP
* GPS_RAW_INT message direction = down

Metadata

Release files for mav2rosgenerator 0.1.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mav2rosgenerator 0.1.9
File Size Uploaded Provenance
mav2rosgenerator-0.1.9.tar.gz 17.2 kB Without provenance Details

Release files / mav2rosgenerator-0.1.9.tar.gz

Download URL mav2rosgenerator-0.1.9.tar.gz
Size 17.2 kB
Tags Source
SHA-256 checksum
How to use checksums
77c0dd4294a1c3e6dc73f5afadc39d06f4e66993aadbceed9b988586f8224deb
BLAKE2b-256 checksum
How to use checksums
deb2d4da6597a450529236db9532e29cfdf8554b69f9e7013684bbfb4f5cc912
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for mav2rosgenerator 0.1.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page