I have tried using HITL gazebo without ROS on ubuntu but it seems there is no connection between my hardware and the simulation (or QGC). The are no errors printed at all, but after gazebo opens, there is not response from the pixhawk and there is no response after opening QGC. I am using px4_fmu-v3 and I have followed the HITL SImulation instructions.
I can use SITL gazebo though, so I really don’t know what could be the problem. Is there anything I should look at for possible errors?
There are no messages sent at all. (If i remove the first line I get a message that says it is unable to find the model) The gazebo sim automatically opens. If I open QGC, it just says waiting for connection. The pixhawk has no visible response either.
I assumed that I was supposed to follow these steps the first time and then every other time I wanted to run the simulation I could just do step 6 and 7.
I am having the same issue as @isb. I am using at Pixhawk 4 mini (px4fmu-v5) with Firmware 1.8.0. I have followed the same steps outlined in the HITL tutorial link, as well as many other attempts. Like @isb, jMAVSim and Gazebo both work fine in SITL, however when trying HITL QGroundControl can never find a vehicle connection. I am interested if there is a resolution here, as I am having a difficult time debugging this problem. Is there a way to read connection logs?
I also have the same issue as isb, QGroundControl does not connect to the Gazebo simulation. I have disabled all comm links except UDP as mentioned in the tutorial. The parameter “SYS_COMPANION” does not seem to be available in the latest Gazebo version so I ignored it.
Did you solve this?
@Andrew_Mangezi when you say “not working” that doesn’t tell me what the problem is. So please describe the steps you are doing and what “doesn’t work”.
Ok, and you did the steps where you have to edit the file to set the connection correctly? And you are sure the connection is possible and QGC is not running, so not blocking the connection?
Yes I changed SerialEnabled and HIL_MODE in iris.sdf to true and checked if the serial connection was correct using the command below:
dmesg | grep “tty”` and also QGC wasn’t running.
@JulianOes I am suffering from the same problem. I followed all the process mentioned in this link: HITL Simulation · PX4 Developer Guide and as soon as my HITL starts running, nothing shows up. There are no vehicle in Gazebo and no connection. Attached is the image of what I am getting.
When following the docs make sure to look at the correct version. @mehdi786 you posted the link for v1.9. (I’m not sure if that’s the reason, but just saying.)