X500_lidar no data at ros topic

Hello,
I am using main release on Ubuntu 22.04 with ROS2 Humble plus MicroXRCEAgent

I am trying to get data from Lidar sensor at gazebo through ROS topics,
I have enabled Collision Prevention in QGC and tried to read data from /fmu/in/obstacle_distance , got nothing
image

but when i try to listen with listener obstacle_distance everything seems to be working fine.

What can i do about it?
Thanks in advance.

For Collision Prevention, are you in position mode?

Which version of PX4 are you running?

I am using Main Release of PX4 (alpha version)

No , I am in mission mode,
Is this the cause of my problem ?

The docs say “position mode.” Have you tried this yet? It might not be enabled in mission mode