17 #ifndef SDF_SENSOR_HH_ 18 #define SDF_SENSOR_HH_ 22 #include <ignition/math/Pose3.hh> 23 #include <ignition/utils/ImplPtr.hh> 27 #include "sdf/sdf_config.h" 33 inline namespace SDF_VERSION_NAMESPACE {
44 struct PoseRelativeToGraph;
45 template <
typename T>
class ScopedGraph;
135 public: std::string Name()
const;
140 public:
void SetName(
const std::string &_name);
144 public: std::string Topic()
const;
148 public:
void SetTopic(
const std::string &_topic);
155 public:
const ignition::math::Pose3d &RawPose()
const;
160 public:
void SetRawPose(
const ignition::math::Pose3d &_pose);
166 public:
const std::string &PoseRelativeTo()
const;
172 public:
void SetPoseRelativeTo(
const std::string &_frame);
199 public:
bool SetType(
const std::string &_typeStr);
203 public: std::string TypeStr()
const;
209 public:
double UpdateRate()
const;
215 public:
void SetUpdateRate(
double _hz);
220 public:
bool operator==(
const Sensor &_sensor)
const;
226 public:
bool operator!=(
const Sensor &_sensor)
const;
237 public:
void SetMagnetometerSensor(
const Magnetometer &_mag);
244 public:
const Altimeter *AltimeterSensor()
const;
248 public:
void SetAltimeterSensor(
const Altimeter &_alt);
255 public:
const AirPressure *AirPressureSensor()
const;
259 public:
void SetAirPressureSensor(
const AirPressure &_air);
263 public:
void SetCameraSensor(
const Camera &_cam);
270 public:
const Camera *CameraSensor()
const;
274 public:
void SetForceTorqueSensor(
const ForceTorque &_ft);
281 public:
const ForceTorque *ForceTorqueSensor()
const;
285 public:
void SetImuSensor(
const Imu &_imu);
292 public:
const Imu *ImuSensor()
const;
299 public:
const Lidar *LidarSensor()
const;
303 public:
void SetLidarSensor(
const Lidar &_lidar);
309 private:
void SetXmlParentName(
const std::string &_xmlParentName);
315 private:
void SetPoseRelativeToGraph(
316 sdf::ScopedGraph<PoseRelativeToGraph> _graph);
324 IGN_UTILS_IMPL_PTR(dataPtr)
Lidar contains information about a Lidar sensor.
Definition: Lidar.hh:105
Information about an SDF sensor.
Definition: Sensor.hh:119
A monocular camera sensor.
ForceTorque contains information about a force torque sensor.
Definition: ForceTorque.hh:64
Imu contains information about an imu sensor.
Definition: Imu.hh:33
std::vector< Error > Errors
A vector of Error.
Definition: Types.hh:98
A CPU based lidar sensor.
Magnetometer contains information about a magnetometer sensor.
Definition: Magnetometer.hh:34
An RGBD sensor, which produces both a color image and a depth image.
AirPressure contains information about a general purpose fluid pressure sensor.
Definition: AirPressure.hh:34
#define SDFORMAT_VISIBLE
Use to represent "symbol visible" if supported.
Definition: system_util.hh:41
Altimeter contains information about an altimeter sensor.
Definition: Altimeter.hh:33
std::shared_ptr< Element > ElementPtr
Definition: Element.hh:53
A GPU based lidar sensor.
Information about a monocular camera sensor.
Definition: Camera.hh:60
class SDFORMAT_VISIBLE Element
Definition: Element.hh:49
SemanticPose is a data structure that can be used by different DOM objects to resolve poses on a Pose...
Definition: SemanticPose.hh:54
SensorType
The set of sensor types.
Definition: Sensor.hh:51
namespace for Simulation Description Format parser
Definition: Actor.hh:33