XBotInterface
2.4.1
XBotInterface provides a generic API to model and control a robot.
|
Go to the documentation of this file.
20 #ifndef __XBOT__GENERIC_SENSOR__
21 #define __XBOT__GENERIC_SENSOR__
26 #include <Eigen/Geometry>
27 #include <eigen_conversions/eigen_kdl.h>
28 #include <srdfdom_advr/model.h>
40 typedef std::shared_ptr<GenericSensor>
Ptr;
41 typedef std::shared_ptr<const GenericSensor>
ConstPtr;
55 GenericSensor(urdf::LinkConstSharedPtr sensor_link,
int sensor_id);
112 std::string _sensor_name;
115 std::string _parent_link_name, _parent_joint_name;
116 Eigen::Affine3d _parent_link_T_sensor_link;
std::shared_ptr< GenericSensor > Ptr
Definition: GenericSensor.h:40
const Eigen::Affine3d & getSensorPose() const
Getter for the sensor pose w.r.t.
Definition: GenericSensor.cpp:81
Generic sensor abstraction.
Definition: GenericSensor.h:36
const int getSensorId() const
Getter for the sensor id.
Definition: GenericSensor.cpp:68
void setTimestamp(double timestamp)
Setter for the timestamp of the sensor reading.
Definition: GenericSensor.cpp:91
const std::string & getParentJointName() const
Getter for the sensor parent joint name.
Definition: GenericSensor.cpp:52
std::shared_ptr< const GenericSensor > ConstPtr
Definition: GenericSensor.h:41
GenericSensor()
Default constructor.
Definition: GenericSensor.cpp:46
const std::string & getParentLinkName() const
Getter for the sensor parent link name.
Definition: GenericSensor.cpp:58
const std::string & getSensorName() const
Getter for the sensor name.
Definition: GenericSensor.cpp:63
Definition: IXBotModel.h:20
double getTimestamp() const
Getter for the timestamp of the last sensor reading.
Definition: GenericSensor.cpp:86