gazebo::sensors::Sensor::SetActive not working for ray sensor

Create issue
Issue #2625 new
Former user created an issue

My code is following,

void MyRaySensorPlugin::Load(gazebo::sensors::SensorPtr _sensor,
                                           sdf::ElementPtr _sdf) {
  std::cout << "sensor activeness : " << _sensor->IsActive() << " to ";
  std::cout << _sensor->IsActive() << std::endl;

My sdf file is following.

<sensor name="my_laserscan" type="ray">
        <pose>0 0 0 0 0 0</pose>
        <plugin name="my_laserscan_plugin" filename="">
        <plugin name="gazebo_laserscan" filename="">

The output is always sensor activeness : 1 to 1, although the expected output is sensor activeness : 0 to 1.

Comments (1)

  1. Log in to comment