Connection to SITL vehicle not working QGC with ROS commands

Hi everyone, I am having trouble connecting QGC to a px4 SITL vehicle.

I am running the commands under ros: “roslaunch px4 mavros_posix_sitl.launch” and trying to connect to the vehicle in QGroundControl so that I can fly some missions. The app stays on “waiting for vehicle connection”.

What I have tried so far: changing SYS ID number, adding user defined Comm Links, changing gcs_url parameter in the .launch file.

Note that the “MAVLink Inspector” shows mavlink messages coming from a vehicle, but connection is not working.

When running the make commands: “make px4_sitl gazebo” from the root PX4 directory, the connection to QGC is automatically made. How can I replicate this behaviour using the ros command I am using?

I am quite new to PX4 so apologies if I have missed something. My goal is to fly a drone in a custom world environment and test some algorithms with ROS.