Gazebo | Ignition | Community
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Ignition Gazebo Sensor Plugin

Hello. I am new to Ignition Gazebo. I have a Camera (Sensor) Plugin for Gazebo that works just fine, now I try to migrate to Ignition Gazebo, but I have problems with API and available documentation and examples are not helping.

In Gazebo version of my plugin I have void CameraPlugin::Load(sensors::SensorPtr _sensor, sdf::ElementPtr _sdf) function, and from _sensor variable I am able to use camera as needed.

Now in Ignition Gazebo I do not have Load function, but instead have void CameraPlugin::Configure(const ignition::gazebo::Entity &_entity, const std::shared_ptr<const sdf::Element> &, ignition::gazebo::EntityComponentManager &_ecm, ignition::gazebo::EventManager &). I tried to do the same thing as in the previous version of the plugin, getting the camera object so that I can get the data I need, but I cannot find a way to do it.

Can anyone, please, show me how to extract this kind of data?