Public Member Functions | Private Attributes
ros_integration::RosSubChannelElement< T > Class Template Reference

#include <ros_msg_transporter.hpp>

Inheritance diagram for ros_integration::RosSubChannelElement< T >:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual bool inputReady ()
void newData (const T &msg)
 RosSubChannelElement (base::PortInterface *port, const ConnPolicy &policy)
 ~RosSubChannelElement ()

Private Attributes

ros::NodeHandle ros_node
ros::Subscriber ros_sub

Detailed Description

template<typename T>
class ros_integration::RosSubChannelElement< T >

Definition at line 176 of file ros_msg_transporter.hpp.


Constructor & Destructor Documentation

template<typename T>
ros_integration::RosSubChannelElement< T >::RosSubChannelElement ( base::PortInterface port,
const ConnPolicy policy 
) [inline]

Contructor of to create ROS subscriber ChannelElement, it will subscribe to a topic with the name given by the policy.name_id

Parameters:
portport for which we will create a the ROS publisher
policyconnection policy containing the topic name and buffer size
Returns:
ChannelElement that will publish data to topics

Definition at line 191 of file ros_msg_transporter.hpp.

template<typename T>
ros_integration::RosSubChannelElement< T >::~RosSubChannelElement ( ) [inline]

Definition at line 202 of file ros_msg_transporter.hpp.


Member Function Documentation

template<typename T>
virtual bool ros_integration::RosSubChannelElement< T >::inputReady ( ) [inline, virtual]

Reimplemented from RTT::base::ChannelElementBase.

Definition at line 205 of file ros_msg_transporter.hpp.

template<typename T>
void ros_integration::RosSubChannelElement< T >::newData ( const T &  msg) [inline]

Callback function for the ROS subscriber, it will trigger the ChannelElement's signal function

Parameters:
msgThe received message

Definition at line 213 of file ros_msg_transporter.hpp.


Member Data Documentation

template<typename T>
ros::NodeHandle ros_integration::RosSubChannelElement< T >::ros_node [private]

Definition at line 178 of file ros_msg_transporter.hpp.

template<typename T>
ros::Subscriber ros_integration::RosSubChannelElement< T >::ros_sub [private]

Definition at line 179 of file ros_msg_transporter.hpp.


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


rtt_rosnode
Author(s): Ruben Smits, ruben.smits@mech.kuleuven.be
autogenerated on Mon Oct 6 2014 07:24:21