!REDIRECT “https://docs.px4.io/master/zh/ros/

使用 ROS

ROS (机器人操作系统)是一种通用的机器人库,可与 PX4 一起用于 离板控制 。 它使用 MAVROS 节点与在硬件上运行或使用 Gazebo 模拟器 的 PX4 进行通信。

本节包含有关使用 ROS 在 PX4 的离板控制的主题。

Tip ROS 仅在 Linux 平台上得到官方支持。

Installation

The easiest way to setup PX4 simulation with ROS (on Ubuntu Linux) is to use the standard installation script that can be found at Development Environment on Linux > Gazebo with ROS. The script installs everything you need: PX4, ROS, the Gazebo simulator, and MAVROS.

Note If you just need to install ROS then follow the ROS Melodic installation instructions for your platform.

External Resources

  • XTDrone - ROS + PX4 simulation environment for computer vision. The XTDrone Manual has everything you need to get started!