Public Member Functions | Public Attributes | List of all members
gazebo::ConnectHelperStorage< GazeboMsgT > Struct Template Reference

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

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). More...
 

Public Attributes

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

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

◆ callback()

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

◆ fp

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.

◆ ptr

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.

◆ ros_publisher

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 Mon Feb 28 2022 23:39:04