how to solve (ranges not constructed yet (zero sized) warning msgs ) issue.

asked 2013-07-21 02:48:36 -0500

Zahra gravatar image

Hello everyone,

I am following the rosenabeledmodel plugin that sends laser scans to ros and pretty much I am following the part of publishing laser scans via rostopic from this answer

I inserted the plugin in Hokuyo model.sdf as a model plugin. the problem is when I start gazebo with this plugin I get the following warning messages :

Warning [] ranges not constructed yet (zero sized)

can anyone please explain to me why I am getting these msgs? And what is the solution for it?

Thanks in advance!

edit retag flag offensive close merge delete


can you try setting "raySensor->SetActive(true)" in the Load function. By default if nothing subscribes to the sensor it'll not update, and hence it doesn't initialize the range data

iche033 gravatar imageiche033 ( 2013-07-23 18:01:47 -0500 )edit

Thanks for replying! I tried setting raysensor->SetActive(true) in the load function but it didn't work, I still get the same warning msgs. I also set the laser active in the update function and still the same.

Zahra gravatar imageZahra ( 2013-07-24 02:45:28 -0500 )edit