ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

irBeams inside IRSensor

asked 2011-09-22 05:12:26 -0500

jrcapriles gravatar image

updated 2011-09-22 20:09:15 -0500

I'm working with gazebo simulator, in the IRSensor.hh file (in gazebo/build/gazebo/server/sensors/ir/IRSensor.hh) is declared

private std::vector<RaySensor*> irBeams;

And then, in the file (in gazebo/build/gazebo/server/sensors/ir/ is used this structure in order to use the parameters of the sensor like

    unsigned int IRSensor::GetIRCount() const
      return this->irBeams.size();

But this structure is nowhere defined or filled inside this file. How is this possible? Where is it?

I ask because i try to use this function (GetIRCount) after configuring a IRSensor through a XML file and it always return 0 because it is empty and i really don't why.

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted

answered 2011-09-23 01:22:21 -0500

As I wrote here, this seems to be a bug in Gazebo. The relevant ticket is

edit flag offensive delete link more

Question Tools


Asked: 2011-09-22 05:12:26 -0500

Seen: 208 times

Last updated: Sep 23 '11