Go to the documentation of this file.
17 #ifndef SDF_SENSOR_HH_
18 #define SDF_SENSOR_HH_
22 #include <gz/math/Pose3.hh>
23 #include <gz/utils/ImplPtr.hh>
34 inline namespace SDF_VERSION_NAMESPACE {
46 struct PoseRelativeToGraph;
47 template <
typename T>
class ScopedGraph;
152 public: std::string Name()
const;
157 public:
void SetName(
const std::string &_name);
161 public: std::string Topic()
const;
165 public:
void SetTopic(
const std::string &_topic);
169 public:
bool EnableMetrics()
const;
173 public:
void SetEnableMetrics(
bool _enableMetrics);
180 public:
const gz::math::Pose3d &RawPose()
const;
185 public:
void SetRawPose(
const gz::math::Pose3d &_pose);
191 public:
const std::string &PoseRelativeTo()
const;
197 public:
void SetPoseRelativeTo(
const std::string &_frame);
231 public:
bool SetType(
const std::string &_typeStr);
235 public: std::string TypeStr()
const;
241 public:
double UpdateRate()
const;
247 public:
void SetUpdateRate(
double _hz);
252 public:
bool operator==(
const Sensor &_sensor)
const;
258 public:
bool operator!=(
const Sensor &_sensor)
const;
276 public:
void SetMagnetometerSensor(
const Magnetometer &_mag);
283 public:
const Altimeter *AltimeterSensor()
const;
294 public:
void SetAltimeterSensor(
const Altimeter &_alt);
301 public:
const AirPressure *AirPressureSensor()
const;
312 public:
void SetAirPressureSensor(
const AirPressure &_air);
316 public:
void SetCameraSensor(
const Camera &_cam);
323 public:
const Camera *CameraSensor()
const;
330 public:
Camera *CameraSensor();
334 public:
void SetNavSatSensor(
const NavSat &_navsat);
341 public:
const NavSat *NavSatSensor()
const;
348 public:
NavSat *NavSatSensor();
352 public:
void SetForceTorqueSensor(
const ForceTorque &_ft);
359 public:
const ForceTorque *ForceTorqueSensor()
const;
370 public:
void SetImuSensor(
const Imu &_imu);
377 public:
const Imu *ImuSensor()
const;
384 public:
Imu *ImuSensor();
391 public:
const Lidar *LidarSensor()
const;
398 public:
Lidar *LidarSensor();
402 public:
void SetLidarSensor(
const Lidar &_lidar);
415 public:
void ClearPlugins();
419 public:
void AddPlugin(
const Plugin &_plugin);
425 private:
void SetXmlParentName(
const std::string &_xmlParentName);
431 private:
void SetPoseRelativeToGraph(
444 GZ_UTILS_IMPL_PTR(dataPtr)
Information about a monocular camera sensor.
Definition: Camera.hh:60
@ SEGMENTATION_CAMERA
A segmentation camera sensor.
@ GPU_LIDAR
A GPU based lidar sensor.
@ THERMAL_CAMERA
A thermal camera sensor.
@ MAGNETOMETER
A magnetometer sensor.
Imu contains information about an imu sensor.
Definition: Imu.hh:33
namespace for Simulation Description Format parser
Definition: Actor.hh:34
@ BOUNDINGBOX_CAMERA
A boundingbox camera sensor.
@ MULTICAMERA
A multicamera sensor.
NavSat contains information about a NavSat sensor.
Definition: NavSat.hh:75
@ AIR_PRESSURE
An air pressure sensor.
@ NAVSAT
A NavSat sensor, such as GPS.
@ CAMERA
A monocular camera sensor.
@ DEPTH_CAMERA
A depth camera sensor.
Altimeter contains information about an altimeter sensor.
Definition: Altimeter.hh:33
#define SDFORMAT_VISIBLE
Definition: system_util.hh:25
AirPressure contains information about a general purpose fluid pressure sensor.
Definition: AirPressure.hh:34
Magnetometer contains information about a magnetometer sensor.
Definition: Magnetometer.hh:34
@ WIRELESS_RECEIVER
A wireless receiver.
@ FORCE_TORQUE
A force-torque sensor.
@ WIDE_ANGLE_CAMERA
A wide angle camera sensor.
SensorType
Definition: Sensor.hh:53
Lidar contains information about a Lidar sensor.
Definition: Lidar.hh:105
@ SONAR
A sonar tag sensor.
@ LIDAR
A CPU based lidar sensor.
class GZ_SDFORMAT_VISIBLE Element
Definition: Element.hh:50
SemanticPose is a data structure that can be used by different DOM objects to resolve poses on a Pose...
Definition: SemanticPose.hh:54
std::vector< Error > Errors
A vector of Error.
Definition: Types.hh:80
@ LOGICAL_CAMERA
A logical camera sensor.
Definition: Collision.hh:39
ForceTorque contains information about a force torque sensor.
Definition: ForceTorque.hh:64
@ ALTIMETER
An altimeter sensor.
@ RGBD_CAMERA
An RGBD sensor, which produces both a color image and a depth image.
@ NONE
An unspecified sensor type.
std::vector< Plugin > Plugins
A vector of Plugin.
Definition: Plugin.hh:196
@ CONTACT
A contact sensor.
Information about an SDF sensor.
Definition: Sensor.hh:136
std::shared_ptr< Element > ElementPtr
Definition: Element.hh:54
@ WIRELESS_TRANSMITTER
A wireless transmitter.