diff --git a/urdf_model/include/urdf_model/model.h b/urdf_model/include/urdf_model/model.h index bbccf2c..177435e 100644 --- a/urdf_model/include/urdf_model/model.h +++ b/urdf_model/include/urdf_model/model.h @@ -42,6 +42,7 @@ #include #include #include +#include namespace urdf { @@ -197,7 +198,7 @@ class ModelInterface /// \brief The root is always a link (the parent of the tree describing the robot) boost::shared_ptr root_link_; - + std::map > sensors_; }; diff --git a/urdf_sensor/include/urdf_sensor/sensor.h b/urdf_sensor/include/urdf_sensor/sensor.h index 3b99695..d15849c 100644 --- a/urdf_sensor/include/urdf_sensor/sensor.h +++ b/urdf_sensor/include/urdf_sensor/sensor.h @@ -72,10 +72,18 @@ namespace urdf{ -class VisualSensor +class SensorBase { +public: + enum {VISUAL, FORCE, TACTILE, IMU, GYRO, ACCELERATION, GPS} sensor_type; + virtual ~SensorBase(void) + { + } +}; + +class VisualSensor : public SensorBase { public: - enum {CAMERA, RAY} type; + enum {CAMERA, RAY, DEPTH} type; virtual ~VisualSensor(void) { } @@ -148,8 +156,7 @@ class Sensor Pose origin; /// sensor - boost::shared_ptr sensor; - + boost::shared_ptr sensor; /// Parent link element name. A pointer is stored in parent_link_. std::string parent_link_name;