17 #ifndef GZ_SENSORS_MANAGER_HH_
18 #define GZ_SENSORS_MANAGER_HH_
23 #include <type_traits>
25 #include <gz/utils/SuppressWarning.hh>
26 #include <gz/common/Console.hh>
27 #include <gz/sensors/config.hh>
28 #include <gz/sensors/Export.hh>
37 inline namespace GZ_SENSORS_VERSION_NAMESPACE {
72 public:
template<
typename SensorType,
typename SdfType>
76 auto sensor = sensorFactory.
CreateSensor<SensorType>(_sdf);
77 if (
nullptr == sensor)
79 gzerr <<
"Failed to create sensor." <<
std::endl;
82 auto result = sensor.get();
85 gzerr <<
"Failed to add sensor." <<
std::endl;
114 public:
void RunOnce(
const std::chrono::steady_clock::duration &_time,
115 bool _force =
false);
117 GZ_UTILS_WARN_IGNORE__DLL_INTERFACE_MISSING
120 GZ_UTILS_WARN_RESUME__DLL_INTERFACE_MISSING