Robotics StackExchange | Archived questions

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?

Thanks in advance!

Asked by Zahra on 2013-07-21 02:48:36 UTC

Comments

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

Asked by iche033 on 2013-07-23 18:01:47 UTC

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.

Asked by Zahra on 2013-07-24 02:45:28 UTC

Answers