17 #ifndef SDF_SENSOR_HH_ 18 #define SDF_SENSOR_HH_ 21 #include <ignition/math/Pose3.hh> 29 inline namespace SDF_VERSION_NAMESPACE {
137 public: std::string Name()
const;
142 public:
void SetName(
const std::string &_name);
146 public: std::string Topic()
const;
150 public:
void SetTopic(
const std::string &_topic);
157 public:
const ignition::math::Pose3d &Pose()
const;
162 public:
void SetPose(
const ignition::math::Pose3d &_pose);
168 public:
const std::string &PoseFrame()
const;
174 public:
void SetPoseFrame(
const std::string &_frame);
196 public:
bool SetType(
const std::string &_typeStr);
200 public: std::string TypeStr()
const;
206 public:
double UpdateRate()
const;
212 public:
void SetUpdateRate(
double _hz);
227 public:
bool operator==(
const Sensor &_sensor)
const;
233 public:
bool operator!=(
const Sensor &_sensor)
const;
240 public:
const Magnetometer *MagnetometerSensor()
const;
244 public:
void SetMagnetometerSensor(
const Magnetometer &_mag);
251 public:
const Altimeter *AltimeterSensor()
const;
255 public:
void SetAltimeterSensor(
const Altimeter &_alt);
262 public:
const AirPressure *AirPressureSensor()
const;
266 public:
void SetAirPressureSensor(
const AirPressure &_air);
270 public:
void SetCameraSensor(
const Camera &_cam);
277 public:
const Camera *CameraSensor()
const;
281 public:
void SetImuSensor(
const Imu &_imu);
288 public:
const Imu *ImuSensor()
const;
295 public:
const Lidar *LidarSensor()
const;
299 public:
void SetLidarSensor(
const Lidar &_lidar);
302 private: SensorPrivate *dataPtr =
nullptr;
A CPU based lidar sensor.
SensorType
The set of sensor types.
Definition: Sensor.hh:45
class SDFORMAT_VISIBLE Element
Definition: Element.hh:47
An unspecified sensor type.
A monocular camera sensor.
Information about an SDF sensor.
Definition: Sensor.hh:110
std::shared_ptr< Element > ElementPtr
Definition: Element.hh:51
std::vector< Error > Errors
A vector of Error.
Definition: Types.hh:74
An RGBD sensor, which produces both a color image and a depth image.
#define SDFORMAT_VISIBLE
Use to represent "symbol visible" if supported.
Definition: system_util.hh:48
A GPU based lidar sensor.
namespace for Simulation Description Format parser
Definition: AirPressure.hh:25