Gazebo ardupilot camera problem

Hi everybody,

I launch Gazebo with SITL and connect to a camera using the ROS-Gazebo bridge. I’m using.

‘’/world/iris_runway/model/iris_with_gimbal/model/gimbal/link/pitch_link/sensor/camera/image’’

The issue is, as soon as I connect with sitl, the camera suddenly rotates, as shown in the images. it just turns on its own.

Any idea why this is happening? And how can I stop the camera from moving like that?

Appreciate any help!

Hello @k_dalkilinc, in this example the gimbal is controlled by the flight controller (ArduPilot SITL), and the parameters need to be configured correctly for this.
See: Servo Gimbal — Copter documentation