Go to the documentation of this file.
17 #ifndef SDF_SENSOR_HH_
18 #define SDF_SENSOR_HH_
22 #include <ignition/math/Pose3.hh>
26 #include "sdf/sdf_config.h"
32 inline namespace SDF_VERSION_NAMESPACE {
45 struct PoseRelativeToGraph;
149 public: std::string Name()
const;
154 public:
void SetName(
const std::string &_name);
158 public: std::string Topic()
const;
162 public:
void SetTopic(
const std::string &_topic);
166 public:
bool EnableMetrics()
const;
170 public:
void SetEnableMetrics(
bool _enableMetrics);
178 public:
const ignition::math::Pose3d &Pose()
const
185 public:
void SetPose(
const ignition::math::Pose3d &_pose)
193 public:
const ignition::math::Pose3d &RawPose()
const;
198 public:
void SetRawPose(
const ignition::math::Pose3d &_pose);
204 public:
const std::string &PoseRelativeTo()
const;
210 public:
void SetPoseRelativeTo(
const std::string &_frame);
217 public:
const std::string &PoseFrame()
const
225 public:
void SetPoseFrame(
const std::string &_frame)
253 public:
bool SetType(
const std::string &_typeStr);
257 public: std::string TypeStr()
const;
263 public:
double UpdateRate()
const;
269 public:
void SetUpdateRate(
double _hz);
284 public:
bool operator==(
const Sensor &_sensor)
const;
290 public:
bool operator!=(
const Sensor &_sensor)
const;
301 public:
void SetMagnetometerSensor(
const Magnetometer &_mag);
308 public:
const Altimeter *AltimeterSensor()
const;
312 public:
void SetAltimeterSensor(
const Altimeter &_alt);
319 public:
const AirPressure *AirPressureSensor()
const;
323 public:
void SetAirPressureSensor(
const AirPressure &_air);
327 public:
void SetCameraSensor(
const Camera &_cam);
334 public:
const Camera *CameraSensor()
const;
338 public:
void SetForceTorqueSensor(
const ForceTorque &_ft);
345 public:
const ForceTorque *ForceTorqueSensor()
const;
349 public:
void SetNavSatSensor(
const NavSat &_navsat);
356 public:
const NavSat *NavSatSensor()
const;
360 public:
void SetImuSensor(
const Imu &_imu);
367 public:
const Imu *ImuSensor()
const;
374 public:
const Lidar *LidarSensor()
const;
378 public:
void SetLidarSensor(
const Lidar &_lidar);
384 private:
void SetXmlParentName(
const std::string &_xmlParentName);
390 private:
void SetPoseRelativeToGraph(
391 std::weak_ptr<const PoseRelativeToGraph> _graph);
399 private: SensorPrivate *dataPtr =
nullptr;
@ WIRELESS_TRANSMITTER
A wireless transmitter.
@ ALTIMETER
An altimeter sensor.
AirPressure contains information about a general purpose fluid pressure sensor.
Definition: AirPressure.hh:35
namespace for Simulation Description Format parser
Definition: Actor.hh:32
@ SONAR
A sonar tag sensor.
@ GPU_LIDAR
A GPU based lidar sensor.
ForceTorque contains information about a force torque sensor.
Definition: ForceTorque.hh:66
@ CAMERA
A monocular camera sensor.
@ CONTACT
A contact sensor.
Imu contains information about an imu sensor.
Definition: Imu.hh:35
std::vector< Error > Errors
A vector of Error.
Definition: Types.hh:89
SensorType
Definition: Sensor.hh:51
@ AIR_PRESSURE
An air pressure sensor.
#define SDFORMAT_VISIBLE
Definition: system_util.hh:48
@ MAGNETOMETER
A magnetometer sensor.
class SDFORMAT_VISIBLE SDF_DEPRECATED(9.2) URDF2SDF
URDF to SDF converter.
Definition: parser_urdf.hh:40
@ LOGICAL_CAMERA
A logical camera sensor.
@ NAVSAT
A NavSat sensor, such as GPS.
Information about a monocular camera sensor.
Definition: Camera.hh:63
@ DEPTH_CAMERA
A depth camera sensor.
NavSat contains information about a NavSat sensor.
Definition: NavSat.hh:76
@ THERMAL_CAMERA
A thermal camera sensor.
SemanticPose is a data structure that can be used by different DOM objects to resolve poses on a Pose...
Definition: SemanticPose.hh:53
@ RGBD_CAMERA
An RGBD sensor, which produces both a color image and a depth image.
Information about an SDF sensor.
Definition: Sensor.hh:122
std::shared_ptr< Element > ElementPtr
Definition: Element.hh:53
@ WIRELESS_RECEIVER
A wireless receiver.
Lidar contains information about a Lidar sensor.
Definition: Lidar.hh:104
@ MULTICAMERA
A multicamera sensor.
class SDFORMAT_VISIBLE Element
Definition: Element.hh:49
@ LIDAR
A CPU based lidar sensor.
Altimeter contains information about an altimeter sensor.
Definition: Altimeter.hh:34
Magnetometer contains information about a magnetometer sensor.
Definition: Magnetometer.hh:34
@ FORCE_TORQUE
A force-torque sensor.