#include <UnderwaterCurrentROSPlugin.hh>
Public Member Functions | |
bool | GetCurrentHorzAngleModel (uuv_world_ros_plugins_msgs::GetCurrentModel::Request &_req, uuv_world_ros_plugins_msgs::GetCurrentModel::Response &_res) |
Service call to read the parameters for the horizontal angle Gauss-Markov process model. More... | |
bool | GetCurrentVelocityModel (uuv_world_ros_plugins_msgs::GetCurrentModel::Request &_req, uuv_world_ros_plugins_msgs::GetCurrentModel::Response &_res) |
Service call to read the parameters for the velocity Gauss-Markov process model. More... | |
bool | GetCurrentVertAngleModel (uuv_world_ros_plugins_msgs::GetCurrentModel::Request &_req, uuv_world_ros_plugins_msgs::GetCurrentModel::Response &_res) |
Service call to read the parameters for the vertical angle Gauss-Markov process model. More... | |
void | Load (gazebo::physics::WorldPtr _world, sdf::ElementPtr _sdf) |
Load module and read parameters from SDF. More... | |
UnderwaterCurrentROSPlugin () | |
Class constructor. More... | |
bool | UpdateCurrentHorzAngleModel (uuv_world_ros_plugins_msgs::SetCurrentModel::Request &_req, uuv_world_ros_plugins_msgs::SetCurrentModel::Response &_res) |
Service call to update the parameters for the horizontal angle Gauss-Markov process model. More... | |
bool | UpdateCurrentVelocity (uuv_world_ros_plugins_msgs::SetCurrentVelocity::Request &_req, uuv_world_ros_plugins_msgs::SetCurrentVelocity::Response &_res) |
Service call to update the mean value of the flow velocity. More... | |
bool | UpdateCurrentVelocityModel (uuv_world_ros_plugins_msgs::SetCurrentModel::Request &_req, uuv_world_ros_plugins_msgs::SetCurrentModel::Response &_res) |
Service call to update the parameters for the velocity Gauss-Markov process model. More... | |
bool | UpdateCurrentVertAngleModel (uuv_world_ros_plugins_msgs::SetCurrentModel::Request &_req, uuv_world_ros_plugins_msgs::SetCurrentModel::Response &_res) |
Service call to update the parameters for the vertical angle Gauss-Markov process model. More... | |
bool | UpdateHorzAngle (uuv_world_ros_plugins_msgs::SetCurrentDirection::Request &_req, uuv_world_ros_plugins_msgs::SetCurrentDirection::Response &_res) |
Service call to update the mean value of the horizontal angle. More... | |
bool | UpdateVertAngle (uuv_world_ros_plugins_msgs::SetCurrentDirection::Request &_req, uuv_world_ros_plugins_msgs::SetCurrentDirection::Response &_res) |
Service call to update the mean value of the vertical angle. More... | |
virtual | ~UnderwaterCurrentROSPlugin () |
Class destructor. More... | |
Public Member Functions inherited from gazebo::UnderwaterCurrentPlugin | |
virtual void | Init () |
virtual void | Load (physics::WorldPtr _world, sdf::ElementPtr _sdf) |
UnderwaterCurrentPlugin () | |
void | Update (const common::UpdateInfo &_info) |
virtual | ~UnderwaterCurrentPlugin () |
Private Member Functions | |
void | OnUpdateCurrentVel () |
Publishes ROS topics. More... | |
Private Attributes | |
ros::Publisher | flowVelocityPub |
Publisher for the flow velocity in the world frame. More... | |
gazebo::common::Time | lastRosPublishTime |
Last time we published a message via ROS. More... | |
boost::scoped_ptr< ros::NodeHandle > | rosNode |
Pointer to this ROS node's handle. More... | |
gazebo::event::ConnectionPtr | rosPublishConnection |
Connection for callbacks on update world. More... | |
gazebo::common::Time | rosPublishPeriod |
Period after which we should publish a message via ROS. More... | |
std::map< std::string, ros::ServiceServer > | worldServices |
All underwater world services. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from gazebo::UnderwaterCurrentPlugin | |
void | PublishCurrentVelocity () |
Protected Attributes inherited from gazebo::UnderwaterCurrentPlugin | |
GaussMarkovProcess | currentHorzAngleModel |
GaussMarkovProcess | currentVelModel |
ignition::math::Vector3d | currentVelocity |
std::string | currentVelocityTopic |
GaussMarkovProcess | currentVertAngleModel |
bool | hasSurface |
common::Time | lastUpdate |
transport::NodePtr | node |
std::string | ns |
std::map< std::string, transport::PublisherPtr > | publishers |
sdf::ElementPtr | sdf |
event::ConnectionPtr | updateConnection |
physics::WorldPtr | world |
Definition at line 43 of file UnderwaterCurrentROSPlugin.hh.
uuv_simulator_ros::UnderwaterCurrentROSPlugin::UnderwaterCurrentROSPlugin | ( | ) |
Class constructor.
Definition at line 21 of file UnderwaterCurrentROSPlugin.cc.
|
virtual |
Class destructor.
Definition at line 28 of file UnderwaterCurrentROSPlugin.cc.
bool uuv_simulator_ros::UnderwaterCurrentROSPlugin::GetCurrentHorzAngleModel | ( | uuv_world_ros_plugins_msgs::GetCurrentModel::Request & | _req, |
uuv_world_ros_plugins_msgs::GetCurrentModel::Response & | _res | ||
) |
Service call to read the parameters for the horizontal angle Gauss-Markov process model.
Definition at line 209 of file UnderwaterCurrentROSPlugin.cc.
bool uuv_simulator_ros::UnderwaterCurrentROSPlugin::GetCurrentVelocityModel | ( | uuv_world_ros_plugins_msgs::GetCurrentModel::Request & | _req, |
uuv_world_ros_plugins_msgs::GetCurrentModel::Response & | _res | ||
) |
Service call to read the parameters for the velocity Gauss-Markov process model.
Definition at line 196 of file UnderwaterCurrentROSPlugin.cc.
bool uuv_simulator_ros::UnderwaterCurrentROSPlugin::GetCurrentVertAngleModel | ( | uuv_world_ros_plugins_msgs::GetCurrentModel::Request & | _req, |
uuv_world_ros_plugins_msgs::GetCurrentModel::Response & | _res | ||
) |
Service call to read the parameters for the vertical angle Gauss-Markov process model.
Definition at line 222 of file UnderwaterCurrentROSPlugin.cc.
void uuv_simulator_ros::UnderwaterCurrentROSPlugin::Load | ( | gazebo::physics::WorldPtr | _world, |
sdf::ElementPtr | _sdf | ||
) |
Load module and read parameters from SDF.
Definition at line 40 of file UnderwaterCurrentROSPlugin.cc.
|
private |
Publishes ROS topics.
Definition at line 133 of file UnderwaterCurrentROSPlugin.cc.
bool uuv_simulator_ros::UnderwaterCurrentROSPlugin::UpdateCurrentHorzAngleModel | ( | uuv_world_ros_plugins_msgs::SetCurrentModel::Request & | _req, |
uuv_world_ros_plugins_msgs::SetCurrentModel::Response & | _res | ||
) |
Service call to update the parameters for the horizontal angle Gauss-Markov process model.
Definition at line 254 of file UnderwaterCurrentROSPlugin.cc.
bool uuv_simulator_ros::UnderwaterCurrentROSPlugin::UpdateCurrentVelocity | ( | uuv_world_ros_plugins_msgs::SetCurrentVelocity::Request & | _req, |
uuv_world_ros_plugins_msgs::SetCurrentVelocity::Response & | _res | ||
) |
Service call to update the mean value of the flow velocity.
Definition at line 170 of file UnderwaterCurrentROSPlugin.cc.
bool uuv_simulator_ros::UnderwaterCurrentROSPlugin::UpdateCurrentVelocityModel | ( | uuv_world_ros_plugins_msgs::SetCurrentModel::Request & | _req, |
uuv_world_ros_plugins_msgs::SetCurrentModel::Response & | _res | ||
) |
Service call to update the parameters for the velocity Gauss-Markov process model.
Definition at line 236 of file UnderwaterCurrentROSPlugin.cc.
bool uuv_simulator_ros::UnderwaterCurrentROSPlugin::UpdateCurrentVertAngleModel | ( | uuv_world_ros_plugins_msgs::SetCurrentModel::Request & | _req, |
uuv_world_ros_plugins_msgs::SetCurrentModel::Response & | _res | ||
) |
Service call to update the parameters for the vertical angle Gauss-Markov process model.
Definition at line 268 of file UnderwaterCurrentROSPlugin.cc.
bool uuv_simulator_ros::UnderwaterCurrentROSPlugin::UpdateHorzAngle | ( | uuv_world_ros_plugins_msgs::SetCurrentDirection::Request & | _req, |
uuv_world_ros_plugins_msgs::SetCurrentDirection::Response & | _res | ||
) |
Service call to update the mean value of the horizontal angle.
Definition at line 151 of file UnderwaterCurrentROSPlugin.cc.
bool uuv_simulator_ros::UnderwaterCurrentROSPlugin::UpdateVertAngle | ( | uuv_world_ros_plugins_msgs::SetCurrentDirection::Request & | _req, |
uuv_world_ros_plugins_msgs::SetCurrentDirection::Response & | _res | ||
) |
Service call to update the mean value of the vertical angle.
Definition at line 161 of file UnderwaterCurrentROSPlugin.cc.
|
private |
Publisher for the flow velocity in the world frame.
Definition at line 119 of file UnderwaterCurrentROSPlugin.hh.
|
private |
Last time we published a message via ROS.
Definition at line 125 of file UnderwaterCurrentROSPlugin.hh.
|
private |
Pointer to this ROS node's handle.
Definition at line 113 of file UnderwaterCurrentROSPlugin.hh.
|
private |
Connection for callbacks on update world.
Definition at line 116 of file UnderwaterCurrentROSPlugin.hh.
|
private |
Period after which we should publish a message via ROS.
Definition at line 122 of file UnderwaterCurrentROSPlugin.hh.
|
private |
All underwater world services.
Definition at line 110 of file UnderwaterCurrentROSPlugin.hh.