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

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

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 reopen merge delete

Closed for the following reason question is not relevant or outdated by nkoenig
close date 2020-12-22 08:41:33.585563


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 -0600 )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 -0600 )edit