I was able to run HITL and Gazebo with px4 firmware to perform copter simulation. I followed the documentation and HITL is working properly. I connected QGroundcontrol to read telmetry data and perform autonomous missions.
How can I interface HITL with ROS? I tried to run
roslaunch mavros px4.launch fcu_url:="udp://:firstname.lastname@example.org:14557": mavros was running but no data were provided and Gazebo crashed while QGround was running. I supposed there is UDP problem but I don’t have any idea on how to fix it.
I would appreciate any suggestions .
Thankyou in advance.