-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
13 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,93 +1,22 @@ | ||
# as2_platform_mavlink | ||
|
||
[Aerostack2](https://aerostack2.github.io/) Aerial platform for autopilots that uses MAVLINK as communication standard | ||
|
||
[Aerostack2](https://aerostack2.github.io/) Aerial platform for the PX4 autopilot | ||
## Setup guides | ||
|
||
For a complete installation guide follow [PX4 instructions](https://aerostack2.github.io/_03_aerial_platforms/_mavlink/index.html#installation) | ||
From [MAVROS ROS INDEX](https://index.ros.org/p/mavros/). | ||
|
||
Setup with ```rosdep``` or | ||
``` | ||
sudo apt install ros-<distro>-mavros ros-<distro>-mavros-extras -y | ||
``` | ||
|
||
After this is required to install geographic_lib_datasets | ||
|
||
``` | ||
wget https://raw.githubusercontent.com/mavlink/mavros/ros2/mavros/scripts/install_geographiclib_datasets.sh | ||
chmod +x install_geographiclib_datasets.sh | ||
./install_geographiclib_datasets.sh | ||
``` | ||
|
||
## Multiple PX4 Operation modes: | ||
|
||
![image info](./docs/mavlink_odometry.png) | ||
|
||
|
||
## PX4 Msgs: | ||
|
||
### Availables: | ||
|
||
* /fmu/in/obstacle_distance | ||
* /fmu/in/offboard_control_mode | ||
* /fmu/in/onboard_computer_status | ||
* /fmu/in/sensor_optical_flow | ||
* /fmu/in/telemetry_status | ||
* /fmu/in/trajectory_setpoint | ||
* /fmu/in/vehicle_attitude_setpoint | ||
* /fmu/in/vehicle_command | ||
* /fmu/in/vehicle_mocap_odometry | ||
* /fmu/in/vehicle_rates_setpoint | ||
* /fmu/in/vehicle_trajectory_bezier | ||
* /fmu/in/vehicle_trajectory_waypoint | ||
* /fmu/in/vehicle_visual_odometry | ||
* /fmu/out/failsafe_flags | ||
* /fmu/out/sensor_combined | ||
* /fmu/out/timesync_status | ||
* /fmu/out/vehicle_attitude | ||
* /fmu/out/vehicle_control_mode | ||
* /fmu/out/vehicle_global_position | ||
* /fmu/out/vehicle_gps_position | ||
* /fmu/out/vehicle_local_position | ||
* /fmu/out/vehicle_odometry | ||
* /fmu/out/vehicle_status | ||
|
||
|
||
### Used: | ||
|
||
* IMU: | ||
/fmu/out/sensor_combined | ||
* Set Control Mode: | ||
/fmu/out/vehicle_control_mode | ||
* Get GPS: | ||
/fmu/out/vehicle_gps_position | ||
* Get position: | ||
/fmu/out/vehicle_odometry | ||
|
||
* Set control Mode: | ||
/fmu/in/offboard_control_mode | ||
* Set trajectory reference: | ||
/fmu/in/trajectory_setpoint | ||
* Set attitude reference: | ||
/fmu/in/vehicle_attitude_setpoint | ||
* Set rate reference: | ||
/fmu/in/vehicle_rates_setpoint | ||
* Send vehicle command for arm: | ||
/fmu/in/vehicle_command | ||
* Send vehicle visual odometry: | ||
/fmu/in/vehicle_visual_odometry | ||
|
||
|
||
### Not Availables: | ||
|
||
* Get battery status: | ||
"/fmu/out/battery_status" | ||
* Kill switch: | ||
fmu/in/manual_control_switches | ||
|
||
|
||
### Not Used: | ||
|
||
* /fmu/in/obstacle_distance | ||
* /fmu/in/onboard_computer_status | ||
* /fmu/in/sensor_optical_flow | ||
* /fmu/in/telemetry_status | ||
* /fmu/in/vehicle_mocap_odometry | ||
* /fmu/in/vehicle_trajectory_bezier | ||
* /fmu/in/vehicle_trajectory_waypoint | ||
* /fmu/out/failsafe_flags | ||
* /fmu/out/timesync_status | ||
* /fmu/out/vehicle_attitude | ||
* /fmu/out/vehicle_control_mode | ||
* /fmu/out/vehicle_global_position | ||
* /fmu/out/vehicle_local_position | ||
* /fmu/out/vehicle_status |