Add sitl viewer to use ArduPilot FDM #91
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Purpose
Add a basic program to show how to update the gazebo UI through the protobuf interface with data from ROS.
Looking for feedback. I kept it as a separate package because it depends on
rclcpp
and the gazebo transport.This allows you to use gazebo to show the Ardupilot SITL FDM state, but add other things in gazebo.
It's useful if you don't want to write all your own physics in gazebo and don't care much about accurate flight dynamics.
I took the protobuf approach because I didn't want to write a plugin. A plugin seems like overkill.
Run Instructions
colcon
gz sim iris_viewer.sdf
, click run. There's a little black box, which is the "vehicle", which is a NavSat sensor and NavSat-named box entity. The NavSat sensor will fall due to gravity. No worries!ros2 run ardupilot_gazebo_sitl_viewer SitlViewerNode
gz topic -e -t /navsat
, which is updated by the ArduPilot FDMIssue
Relates to #90