@@ -256,6 +256,13 @@ namespace sdf
256
256
// / \sa SensorType Type() const
257
257
public: const Magnetometer *MagnetometerSensor () const ;
258
258
259
+ // / \brief Get a mutable magnetometer sensor, or nullptr if this sensor type
260
+ // / is not a Magnetometer.
261
+ // / \return Pointer to the Magnetometer sensor, or nullptr if this
262
+ // / Sensor is not a Magnetometer.
263
+ // / \sa SensorType Type() const
264
+ public: Magnetometer *MagnetometerSensor ();
265
+
259
266
// / \brief Set the magnetometer sensor.
260
267
// / \param[in] _mag The magnetometer sensor.
261
268
public: void SetMagnetometerSensor (const Magnetometer &_mag);
@@ -267,6 +274,13 @@ namespace sdf
267
274
// / \sa SensorType Type() const
268
275
public: const Altimeter *AltimeterSensor () const ;
269
276
277
+ // / \brief Get a mutable altimeter sensor, or nullptr if this sensor type
278
+ // / is not an Altimeter.
279
+ // / \return Pointer to the Altimeter sensor, or nullptr if this
280
+ // / Sensor is not a Altimeter.
281
+ // / \sa SensorType Type() const
282
+ public: Altimeter *AltimeterSensor ();
283
+
270
284
// / \brief Set the altimeter sensor.
271
285
// / \param[in] _alt The altimeter sensor.
272
286
public: void SetAltimeterSensor (const Altimeter &_alt);
@@ -278,6 +292,13 @@ namespace sdf
278
292
// / \sa SensorType Type() const
279
293
public: const AirPressure *AirPressureSensor () const ;
280
294
295
+ // / \brief Get a mutable air pressure sensor, or nullptr if this sensor type
296
+ // / is not an AirPressure sensor.
297
+ // / \return Pointer to the AirPressure sensor, or nullptr if this
298
+ // / Sensor is not a AirPressure sensor.
299
+ // / \sa SensorType Type() const
300
+ public: AirPressure *AirPressureSensor ();
301
+
281
302
// / \brief Set the air pressure sensor.
282
303
// / \param[in] _air The air pressure sensor.
283
304
public: void SetAirPressureSensor (const AirPressure &_air);
@@ -293,6 +314,13 @@ namespace sdf
293
314
// / \sa SensorType Type() const
294
315
public: const Camera *CameraSensor () const ;
295
316
317
+ // / \brief Get a mutable camera sensor, or nullptr if the
318
+ // / sensor does not contain a camera sensor.
319
+ // / \return Pointer to the sensor's camera, or nullptr if the sensor
320
+ // / is not a camera.
321
+ // / \sa SensorType Type() const
322
+ public: Camera *CameraSensor ();
323
+
296
324
// / \brief Set the NAVSAT sensor.
297
325
// / \param[in] _navsat The NAVSAT sensor.
298
326
public: void SetNavSatSensor (const NavSat &_navsat);
@@ -304,6 +332,13 @@ namespace sdf
304
332
// / \sa SensorType Type() const
305
333
public: const NavSat *NavSatSensor () const ;
306
334
335
+ // / \brief Get a mutable NAVSAT sensor, or nullptr if the sensor
336
+ // / does not contain an NAVSAT sensor.
337
+ // / \return Pointer to the sensor's NAVSAT, or nullptr if the sensor
338
+ // / is not an NAVSAT.
339
+ // / \sa SensorType Type() const
340
+ public: NavSat *NavSatSensor ();
341
+
307
342
// / \brief Set the force torque sensor.
308
343
// / \param[in] _ft The force torque sensor.
309
344
public: void SetForceTorqueSensor (const ForceTorque &_ft);
@@ -315,6 +350,13 @@ namespace sdf
315
350
// / \sa SensorType Type() const
316
351
public: const ForceTorque *ForceTorqueSensor () const ;
317
352
353
+ // / \brief Get a mutable force torque sensor, or nullptr if the sensor
354
+ // / does not contain a force torque sensor.
355
+ // / \return Pointer to the force torque sensor, or nullptr if the sensor
356
+ // / is not a force torque sensor.
357
+ // / \sa SensorType Type() const
358
+ public: ForceTorque *ForceTorqueSensor ();
359
+
318
360
// / \brief Set the IMU sensor.
319
361
// / \param[in] _imu The IMU sensor.
320
362
public: void SetImuSensor (const Imu &_imu);
@@ -326,13 +368,27 @@ namespace sdf
326
368
// / \sa SensorType Type() const
327
369
public: const Imu *ImuSensor () const ;
328
370
371
+ // / \brief Get a mutable IMU sensor, or nullptr if the sensor
372
+ // / does not contain an IMU sensor.
373
+ // / \return Pointer to the sensor's IMU, or nullptr if the sensor
374
+ // / is not an IMU.
375
+ // / \sa SensorType Type() const
376
+ public: Imu *ImuSensor ();
377
+
329
378
// / \brief Get the lidar sensor, or nullptr if this sensor type is not a
330
379
// / Lidar.
331
380
// / \return Pointer to the Lidar sensor, or nullptr if this Sensor is not a
332
381
// / Lidar.
333
382
// / \sa SensorType Type() const
334
383
public: const Lidar *LidarSensor () const ;
335
384
385
+ // / \brief Get a mutable lidar sensor, or nullptr if this sensor type is
386
+ // / not a Lidar.
387
+ // / \return Pointer to the Lidar sensor, or nullptr if this Sensor is not a
388
+ // / Lidar.
389
+ // / \sa SensorType Type() const
390
+ public: Lidar *LidarSensor ();
391
+
336
392
// / \brief Set the lidar sensor.
337
393
// / \param[in] _lidar The lidar sensor.
338
394
public: void SetLidarSensor (const Lidar &_lidar);
0 commit comments