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

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 IRSensor.cc file (in gazebo/build/gazebo/server/sensors/ir/IRSensor.cc) 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.

https://kforge.ros.org/gazebo/trac/browser/server/sensors/ir/IRSensor.cc

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
0

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

As I wrote here, this seems to be a bug in Gazebo. The relevant ticket is https://kforge.ros.org/gazebo/trac/ticket/30.

edit flag offensive delete link more

Question Tools

Stats

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

Seen: 208 times

Last updated: Sep 23 '11