udp_com_nodelet.h
Go to the documentation of this file.
1 /*
8  * Copyright (c) 2015, Hunter Laux
9  * All rights reserved.
10  */
11 
12 #ifndef UDP_COM_NODELET_H
13 #define UDP_COM_NODELET_H
14 
15 #include <udp_com.h>
16 #include <map>
17 #include <memory>
18 #include <nodelet/nodelet.h>
19 #include <ros/console.h>
20 #include <ros/ros.h>
21 #include <udp_com/UdpPacket.h>
22 #include <udp_com/UdpSend.h>
23 #include <udp_com/UdpSocket.h>
24 
25 namespace udp_com
26 {
31 {
32 public:
37 
42 
48  void onInit();
49 
50 private:
53 
56 
59 
61  std::map<uint16_t, std::shared_ptr<UdpCom>> udp_sockets_;
62 
71  bool send(UdpSend::Request &request, UdpSend::Response &);
72 
81  bool createSocket(UdpSocket::Request &request, UdpSocket::Response &response);
82 };
83 
84 } // namespace udp_com
85 
86 #endif // UDP_COM_NODELET_H
Implements the udp_com create_socket and send services.
bool send(UdpSend::Request &request, UdpSend::Response &)
ros::ServiceServer send_service_
ROS send service.
Implements the UDP methods for recieving and sending within the ROS ecosystem.
ros::NodeHandle node_handler_
ROS node handle.
ros::ServiceServer create_socket_service_
ROS socket creation service.
bool createSocket(UdpSocket::Request &request, UdpSocket::Response &response)
std::map< uint16_t, std::shared_ptr< UdpCom > > udp_sockets_
Map of all the created UDP Sockets.


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