16 #ifndef __UUV_RPT_ROS_PLUGIN_HH__ 17 #define __UUV_RPT_ROS_PLUGIN_HH__ 19 #include <gazebo/gazebo.hh> 22 #include <uuv_sensor_ros_plugins_msgs/PositionWithCovarianceStamped.h> 23 #include <geometry_msgs/PoseWithCovarianceStamped.h> 24 #include "SensorRpt.pb.h" 37 public:
virtual void Load(physics::ModelPtr _model, sdf::ElementPtr _sdf);
40 protected:
virtual bool OnUpdate(
const common::UpdateInfo& _info);
46 protected: uuv_sensor_ros_plugins_msgs::PositionWithCovarianceStamped
rosMessage;
50 #endif // __UUV_RPT_ROS_PLUGIN_HH__ RPTROSPlugin()
Class constructor.
virtual bool OnUpdate(const common::UpdateInfo &_info)
Update sensor measurement.
virtual ~RPTROSPlugin()
Class destructor.
virtual void Load(physics::ModelPtr _model, sdf::ElementPtr _sdf)
Load the plugin.
uuv_sensor_ros_plugins_msgs::PositionWithCovarianceStamped rosMessage
Store message since many attributes do not change (cov.).
ignition::math::Vector3d position
Latest measured position.