$search

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 157 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:
port port for which we will create a the ROS publisher
policy connection policy containing the topic name and buffer size
Returns:
ChannelElement that will publish data to topics

Definition at line 172 of file ros_msg_transporter.hpp.

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

Definition at line 179 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 182 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:
msg The received message

Definition at line 190 of file ros_msg_transporter.hpp.


Member Data Documentation

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

Definition at line 159 of file ros_msg_transporter.hpp.

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

Definition at line 160 of file ros_msg_transporter.hpp.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends Defines


rtt_rosnode
Author(s): Ruben Smits, ruben.smits@mech.kuleuven.be
autogenerated on Sat Mar 2 13:28:54 2013