33 #if GAZEBO_MAJOR_VERSION >= 7 34 this->
parentSensor = std::dynamic_pointer_cast<sensors::Sensor>(_model);
36 this->
parentSensor = boost::dynamic_pointer_cast<sensors::Sensor>(_model);
40 std::string worldName = _model->WorldName();
41 this->
world = physics::get_world(worldName);
virtual ~ROSBaseSensorPlugin()
Class destructor.
virtual void Load(sensors::SensorPtr _model, sdf::ElementPtr _sdf)
Load plugin and its configuration from sdf,.
ROSBaseSensorPlugin()
Class constructor.
physics::WorldPtr world
Pointer to the world.
virtual bool OnUpdate(const common::UpdateInfo &)
Update callback from simulation.
bool InitBasePlugin(sdf::ElementPtr _sdf)
Initialize base plugin.
sensors::SensorPtr parentSensor
Pointer to the parent sensor.