Gazebo | Ignition | Community
Ask Your Question

Revision history [back]

You can use a dynamic pointer cast:

sensors::RaySensorPtr ray_sensor = std::dynamic_pointer_cast<sensors::RaySensor>(model_sensor);