Public Member Functions | Public Attributes
gazebo::ConnectHelperStorage< GazeboMsgT > Struct Template Reference

A helper class that provides storage for additional parameters that are inserted into the callback. More...

List of all members.

Public Member Functions

void callback (const boost::shared_ptr< GazeboMsgT const > &msg_ptr)
 This is what gets passed into the Gazebo Subscribe method as a callback, and hence can only have one parameter (note boost::bind() does not work with the current Gazebo Subscribe() definitions).

Public Attributes

void(GazeboRosInterfacePlugin::* fp )(const boost::shared_ptr< GazeboMsgT const > &, ros::Publisher ros_publisher)
 Function pointer to the subscriber callback with additional parameters.
GazeboRosInterfacePluginptr
 Pointer to the ROS interface plugin class.
ros::Publisher ros_publisher
 The ROS publisher that is passed into the modified callback.

Detailed Description

template<typename GazeboMsgT>
struct gazebo::ConnectHelperStorage< GazeboMsgT >

A helper class that provides storage for additional parameters that are inserted into the callback.

GazeboMsgT The type of the message that will be subscribed to the Gazebo framework.

Definition at line 115 of file gazebo_ros_interface_plugin.cpp.


Member Function Documentation

template<typename GazeboMsgT >
void gazebo::ConnectHelperStorage< GazeboMsgT >::callback ( const boost::shared_ptr< GazeboMsgT const > &  msg_ptr) [inline]

This is what gets passed into the Gazebo Subscribe method as a callback, and hence can only have one parameter (note boost::bind() does not work with the current Gazebo Subscribe() definitions).

Definition at line 131 of file gazebo_ros_interface_plugin.cpp.


Member Data Documentation

template<typename GazeboMsgT >
void(GazeboRosInterfacePlugin::* gazebo::ConnectHelperStorage< GazeboMsgT >::fp)(const boost::shared_ptr< GazeboMsgT const > &, ros::Publisher ros_publisher)

Function pointer to the subscriber callback with additional parameters.

Definition at line 121 of file gazebo_ros_interface_plugin.cpp.

template<typename GazeboMsgT >
GazeboRosInterfacePlugin* gazebo::ConnectHelperStorage< GazeboMsgT >::ptr

Pointer to the ROS interface plugin class.

Definition at line 117 of file gazebo_ros_interface_plugin.cpp.

template<typename GazeboMsgT >
ros::Publisher gazebo::ConnectHelperStorage< GazeboMsgT >::ros_publisher

The ROS publisher that is passed into the modified callback.

Definition at line 125 of file gazebo_ros_interface_plugin.cpp.


The documentation for this struct was generated from the following file:


rotors_gazebo_plugins
Author(s): Fadri Furrer, Michael Burri, Mina Kamel, Janosch Nikolic, Markus Achtelik
autogenerated on Thu Apr 18 2019 02:43:43