Public Member Functions | Private Member Functions | Private Attributes | List of all members
udp_com::UdpComNodelet Class Reference

Implements the udp_com create_socket and send services. More...

#include <udp_com_nodelet.h>

Inheritance diagram for udp_com::UdpComNodelet:
Inheritance graph
[legend]

Public Member Functions

void onInit ()
 
 UdpComNodelet ()
 
 ~UdpComNodelet ()
 
- Public Member Functions inherited from nodelet::Nodelet
void init (const std::string &name, const M_string &remapping_args, const V_string &my_argv, ros::CallbackQueueInterface *st_queue=NULL, ros::CallbackQueueInterface *mt_queue=NULL)
 
 Nodelet ()
 
virtual ~Nodelet ()
 

Private Member Functions

bool createSocket (UdpSocket::Request &request, UdpSocket::Response &response)
 
bool send (UdpSend::Request &request, UdpSend::Response &)
 

Private Attributes

ros::ServiceServer create_socket_service_
 ROS socket creation service. More...
 
ros::NodeHandle node_handler_
 ROS node handle. More...
 
ros::ServiceServer send_service_
 ROS send service. More...
 
std::map< uint16_t, std::shared_ptr< UdpCom > > udp_sockets_
 Map of all the created UDP Sockets. More...
 

Additional Inherited Members

- Protected Member Functions inherited from nodelet::Nodelet
ros::CallbackQueueInterfacegetMTCallbackQueue () const
 
ros::NodeHandlegetMTNodeHandle () const
 
ros::NodeHandlegetMTPrivateNodeHandle () const
 
const V_stringgetMyArgv () const
 
const std::string & getName () const
 
ros::NodeHandlegetNodeHandle () const
 
ros::NodeHandlegetPrivateNodeHandle () const
 
const M_stringgetRemappingArgs () const
 
ros::CallbackQueueInterfacegetSTCallbackQueue () const
 
std::string getSuffixedName (const std::string &suffix) const
 

Detailed Description

Implements the udp_com create_socket and send services.

Definition at line 30 of file udp_com_nodelet.h.

Constructor & Destructor Documentation

udp_com::UdpComNodelet::UdpComNodelet ( )
inline

Initializer constructor.

Definition at line 36 of file udp_com_nodelet.h.

udp_com::UdpComNodelet::~UdpComNodelet ( )
inline

Initialize destructor

Definition at line 41 of file udp_com_nodelet.h.

Member Function Documentation

bool udp_com::UdpComNodelet::createSocket ( UdpSocket::Request &  request,
UdpSocket::Response &  response 
)
private

Socket creation service function

Parameters
[in]requestUDP service request
[in]responseUDP service response
Returns
True if socket was created

Socket creation service function

Parameters
[in]requestUDP service request
[in]responseUDP service response
Returns
bool true if request done

Definition at line 40 of file udp_com_nodelet.cpp.

void udp_com::UdpComNodelet::onInit ( )
virtual

Nodelet initalization function

Returns
void

Implements nodelet::Nodelet.

Definition at line 20 of file udp_com_nodelet.cpp.

bool udp_com::UdpComNodelet::send ( UdpSend::Request &  request,
UdpSend::Response &  response 
)
private

Send service function

Parameters
[in]requestUDP service request
[in]responseUDP service response
Returns
True if request was sent

Definition at line 79 of file udp_com_nodelet.cpp.

Member Data Documentation

ros::ServiceServer udp_com::UdpComNodelet::create_socket_service_
private

ROS socket creation service.

Definition at line 55 of file udp_com_nodelet.h.

ros::NodeHandle udp_com::UdpComNodelet::node_handler_
private

ROS node handle.

Definition at line 58 of file udp_com_nodelet.h.

ros::ServiceServer udp_com::UdpComNodelet::send_service_
private

ROS send service.

Definition at line 52 of file udp_com_nodelet.h.

std::map<uint16_t, std::shared_ptr<UdpCom> > udp_com::UdpComNodelet::udp_sockets_
private

Map of all the created UDP Sockets.

Definition at line 61 of file udp_com_nodelet.h.


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


udp_com
Author(s): Hunter Laux , Max Ginier , Evan Flynn , Gerardo Bravo , Moises Diaz
autogenerated on Sat Dec 5 2020 04:01:00