Go to the documentation of this file.
17 #ifndef SDF_SENSOR_HH_
18 #define SDF_SENSOR_HH_
22 #include <ignition/math/Pose3.hh>
31 inline namespace SDF_VERSION_NAMESPACE {
42 struct PoseRelativeToGraph;
143 public: std::string Name()
const;
148 public:
void SetName(
const std::string &_name);
152 public: std::string Topic()
const;
156 public:
void SetTopic(
const std::string &_topic);
163 public:
const ignition::math::Pose3d &RawPose()
const;
168 public:
void SetRawPose(
const ignition::math::Pose3d &_pose);
174 public:
const std::string &PoseRelativeTo()
const;
180 public:
void SetPoseRelativeTo(
const std::string &_frame);
207 public:
bool SetType(
const std::string &_typeStr);
211 public: std::string TypeStr()
const;
217 public:
double UpdateRate()
const;
223 public:
void SetUpdateRate(
double _hz);
238 public:
bool operator==(
const Sensor &_sensor)
const;
244 public:
bool operator!=(
const Sensor &_sensor)
const;
255 public:
void SetMagnetometerSensor(
const Magnetometer &_mag);
262 public:
const Altimeter *AltimeterSensor()
const;
266 public:
void SetAltimeterSensor(
const Altimeter &_alt);
273 public:
const AirPressure *AirPressureSensor()
const;
277 public:
void SetAirPressureSensor(
const AirPressure &_air);
281 public:
void SetCameraSensor(
const Camera &_cam);
288 public:
const Camera *CameraSensor()
const;
292 public:
void SetImuSensor(
const Imu &_imu);
299 public:
const Imu *ImuSensor()
const;
306 public:
const Lidar *LidarSensor()
const;
310 public:
void SetLidarSensor(
const Lidar &_lidar);
316 private:
void SetXmlParentName(
const std::string &_xmlParentName);
322 private:
void SetPoseRelativeToGraph(
323 std::weak_ptr<const PoseRelativeToGraph> _graph);
331 private: SensorPrivate *dataPtr =
nullptr;
Lidar contains information about a Lidar sensor.
Definition: Lidar.hh:104
@ GPU_LIDAR
A GPU based lidar sensor.
SemanticPose is a data structure that can be used by different DOM objects to resolve poses on a Pose...
Definition: SemanticPose.hh:53
@ THERMAL_CAMERA
A thermal camera sensor.
@ MAGNETOMETER
A magnetometer sensor.
Imu contains information about an imu sensor.
Definition: Imu.hh:35
namespace for Simulation Description Format parser
Definition: Actor.hh:32
std::vector< Error > Errors
A vector of Error.
Definition: Types.hh:95
Altimeter contains information about an altimeter sensor.
Definition: Altimeter.hh:34
@ MULTICAMERA
A multicamera sensor.
@ AIR_PRESSURE
An air pressure sensor.
@ CAMERA
A monocular camera sensor.
std::shared_ptr< Element > ElementPtr
Definition: Element.hh:53
@ DEPTH_CAMERA
A depth camera sensor.
AirPressure contains information about a general purpose fluid pressure sensor.
Definition: AirPressure.hh:35
#define SDFORMAT_VISIBLE
Definition: system_util.hh:48
@ WIRELESS_RECEIVER
A wireless receiver.
@ FORCE_TORQUE
A force-torque sensor.
SensorType
Definition: Sensor.hh:48
@ SONAR
A sonar tag sensor.
@ LIDAR
A CPU based lidar sensor.
Magnetometer contains information about a magnetometer sensor.
Definition: Magnetometer.hh:34
@ LOGICAL_CAMERA
A logical camera sensor.
@ ALTIMETER
An altimeter sensor.
@ RGBD_CAMERA
An RGBD sensor, which produces both a color image and a depth image.
@ NONE
An unspecified sensor type.
Information about a monocular camera sensor.
Definition: Camera.hh:63
@ CONTACT
A contact sensor.
Information about an SDF sensor.
Definition: Sensor.hh:116
class SDFORMAT_VISIBLE Element
Definition: Element.hh:49
@ WIRELESS_TRANSMITTER
A wireless transmitter.