41 UdpSocket::Response &)
43 ROS_INFO(
"Creating a UDP Socket for port: %i", request.port);
46 ROS_ERROR(
"Socket with port: %i already exists.. ", request.port);
47 if (
udp_sockets_[request.port]->getIp() == request.srcAddress)
54 "Sockets with the same port but different source IP Addresses are "
55 "currently not supported. ");
61 "p" + std::to_string(request.port), 1000);
65 std::make_shared<UdpCom>(request.srcAddress, request.destAddress,
66 request.port, request.isMulticast, temp_pub);
69 catch (std::exception e)
80 UdpSend::Response &response)
87 ->send(request.data, request.address, request.dstPort);
89 catch (std::out_of_range e)
91 ROS_ERROR(
"Socket Requested was not found.");