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

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 http://answers.gazebosim.org/question/1991/what-is-the-best-way-to0-learn-gazebo-in-ros-for/

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 [RaySensor.cc:284] 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?

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