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 {
47 struct PoseRelativeToGraph;
48 template <
typename T>
class ScopedGraph;
156 public: std::string Name()
const;
161 public:
void SetName(
const std::string &_name);
165 public: std::string Topic()
const;
169 public:
void SetTopic(
const std::string &_topic);
173 public:
bool EnableMetrics()
const;
177 public:
void SetEnableMetrics(
bool _enableMetrics);
184 public:
const gz::math::Pose3d &RawPose()
const;
189 public:
void SetRawPose(
const gz::math::Pose3d &_pose);
195 public:
const std::string &PoseRelativeTo()
const;
201 public:
void SetPoseRelativeTo(
const std::string &_frame);
243 public:
bool SetType(
const std::string &_typeStr);
247 public: std::string TypeStr()
const;
253 public:
double UpdateRate()
const;
259 public:
void SetUpdateRate(
double _hz);
264 public:
bool operator==(
const Sensor &_sensor)
const;
270 public:
bool operator!=(
const Sensor &_sensor)
const;
288 public:
void SetMagnetometerSensor(
const Magnetometer &_mag);
295 public:
const Altimeter *AltimeterSensor()
const;
306 public:
void SetAltimeterSensor(
const Altimeter &_alt);
313 public:
const AirPressure *AirPressureSensor()
const;
324 public:
void SetAirPressureSensor(
const AirPressure &_air);
331 public:
const AirSpeed *AirSpeedSensor()
const;
342 public:
void SetAirSpeedSensor(
const AirSpeed &_air);
346 public:
void SetCameraSensor(
const Camera &_cam);
353 public:
const Camera *CameraSensor()
const;
360 public:
Camera *CameraSensor();
364 public:
void SetNavSatSensor(
const NavSat &_navsat);
371 public:
const NavSat *NavSatSensor()
const;
378 public:
NavSat *NavSatSensor();
382 public:
void SetForceTorqueSensor(
const ForceTorque &_ft);
389 public:
const ForceTorque *ForceTorqueSensor()
const;
400 public:
void SetImuSensor(
const Imu &_imu);
407 public:
const Imu *ImuSensor()
const;
414 public:
Imu *ImuSensor();
421 public:
const Lidar *LidarSensor()
const;
428 public:
Lidar *LidarSensor();
432 public:
void SetLidarSensor(
const Lidar &_lidar);
445 public:
void ClearPlugins();
449 public:
void AddPlugin(
const Plugin &_plugin);
455 private:
void SetXmlParentName(
const std::string &_xmlParentName);
461 private:
void SetPoseRelativeToGraph(
474 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.
AirSpeed contains information about a general purpose air speed sensor.
Definition: AirSpeed.hh:34
@ 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:54
Lidar contains information about a Lidar sensor.
Definition: Lidar.hh:105
@ SONAR
A sonar tag sensor.
@ LIDAR
A CPU based lidar sensor.
@ AIR_SPEED
An air speed sensor.
class GZ_SDFORMAT_VISIBLE Element
Definition: Element.hh:51
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:40
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:245
@ CONTACT
A contact sensor.
Information about an SDF sensor.
Definition: Sensor.hh:140
std::shared_ptr< Element > ElementPtr
Definition: Element.hh:55
@ WIRELESS_TRANSMITTER
A wireless transmitter.