-
Notifications
You must be signed in to change notification settings - Fork 7
Simulation
pryre edited this page Sep 1, 2017
·
5 revisions
For information on obtaining the PX4 Firmware (and simulation tools), see the PX4 Developer Wiki.
For information on running the jMAVSim simulator, see the PX4 Developer Wiki.
For information on connecting MAVROS to jMAVSim, see the PX4 Developer Wiki
For an example of an automated navigation Node in ROS, see the PX4 Developer Wiki
Sending Position Goals with an Existing Navigation Node
Assuming you have a ROS Node that is already capable of sending out geometry_msgs/PoseStamped
message with a position setpoint for the UAV to follow, with the intention of controlling it's position and orientation in XYZ space, you can do the following:
- First off, launch jMAVSim and MAVROS.
- ake sure the navigation node is outputting to the MAVROS position setpoint topic (by default
/mavros/setpoint_position/local
). If you require feedback for your navigation Node, you can subscribe to the MAVROS current position topic (by default/mavros/local_position/pose
). - To tell the UAV to listen to the setpoint command, you must request OFFBOARD mode:
rosrun mavros mavsys mode -c OFFBOARD
- Arm the UAV:
rosrun mavros mavsafety arm
- The UAV should now be tracking the current setpoint.
- Home
- Common Terminology
- UAV Setup Guides (2024)
- UAV Setup Guides (2022)
- UAV Setup Guides (2021)
- UAV Setup Guides (--2020)
- General Computing
- On-Board Computers
- ROS
- Sensors & Estimation
- Flight Controllers & Autopilots
- Control in ROS
- Navigation & Localization
- Communications
- Airframes
- Power Systems
- Propulsion
- Imagery & Cameras
- Image Processing
- Web Interfaces
- Simulation