Servers by jDrones

Mavros with RVIZ Gazebo and Pixhawk 2.1

I am an EE major, so please be kind to me, I am new to both ROS and linux but I am trying my best to learn as fast as I can.


For my senior design project, we are working with the USAF to build an autonomous ground vehicle. We have already built the UGV and it works, but this semester we need to get ROS working. The UGV needs to be able to traverse GPS waypoints to complete a mission without colliding with people or other obstacles.

We have a URDF file and are running a simple sim in gazebo. There is a team member working on communication between ROS and the motor drivers so all of that is a non-issue


Currently my task is getting GPS and other sensor data from a Pixhawk 2.1 for the system via mavros. I’ve succeeded in doing that, but my next issue is getting Gazebo and or RVIZ to reflect the position and translation data from the IMU.

Q1: What is the best way for me to get Gazebo to work with mavros such that if I rotate the pixhawk, the model in the sim will rotate.

Q2: How can I get the data visualized in RVIZ?

Q3: Do you have any advice for our team regarding the project?

Q4: Is there a way for me to feed dummy data?–Such that the team can test the navigation packages without actually having to move anything to the GPS waypoints.

Q5: Is there anything else cool I can do with Mavros?

Please be kind, I am extremely new to all of this, I am an EE major so I never expected to have to get into the software side of things, but it kinda just turned out this way so I am doing what I can.

Sounds like a challenge!
@khancyr can probably give some guidance

Servers by jDrones