/mavros/state connected:False

I am working on an indoor multi-waypoint UAV. I am using ROS MoveIt to plan the drone’s trajectory. Here is the project repository: dronedoc.

I am launching the Gazebo simulation using:

roslaunch dronedoc iris_moveit.launch

The simulation launches successfully, but when I check /mavros/state, I get connected: False. Because of this, I cannot run or switch to OFFBOARD mode.

The simulation is set to connect in the launch file at udp://:14540@localhost:14557, but it is not working. Any suggestions on how to fix this?"