class UDPROSHandler(rospy.transport.ProtocolHandler):
Constructor: UDPROSHandler(port)
rospy protocol handler for UDPROS. Stores the datagram server if necessary.
Method | __init__ |
ctor |
Method | create |
Connect to topic resolved_name on Publisher pub_uri using UDPROS. @param resolved_name str: resolved topic name @type resolved_name: str @param pub_uri: XML-RPC URI of publisher @type pub_uri: str @param protocol_params: protocol parameters to use for connecting @type protocol_params: [XmlRpcLegal] @return: code, message, debug @rtype: (int, str, int)... |
Method | get |
Get supported protocols |
Method | init |
Initialize this node to start publishing to a new UDP location. |
Method | init |
Initialize and start the server thread, if not already initialized. |
Method | run |
Undocumented |
Method | shutdown |
Undocumented |
Method | supports |
@param protocol: name of protocol @type protocol: str @return: True if protocol is supported @rtype: bool |
Method | topic |
Process incoming topic connection. Reads in topic name from handshake and creates the appropriate L{TCPROSPub} handler for the connection. @param sock: socket connection @type sock: socket.socket @param client_addr: client address @type client_addr: (str, int) @param header: key/value pairs from handshake header @type header: dict @return: error string or None @rtype: str... |
Instance Variable | buff |
Undocumented |
Instance Variable | port |
Undocumented |
Instance Variable | server |
Undocumented |
Connect to topic resolved_name on Publisher pub_uri using UDPROS. @param resolved_name str: resolved topic name @type resolved_name: str @param pub_uri: XML-RPC URI of publisher @type pub_uri: str @param protocol_params: protocol parameters to use for connecting @type protocol_params: [XmlRpcLegal] @return: code, message, debug @rtype: (int, str, int)
Initialize this node to start publishing to a new UDP location.
@param resolved_name: topic name @type resolved__name: str
- @param protocol_params: requested protocol
- parameters. protocol[0] must be the string 'UDPROS'
@type protocol_params: [str, value*] @return: (code, msg, [UDPROS, addr, port]) @rtype: (int, str, list)
@param protocol: name of protocol @type protocol: str @return: True if protocol is supported @rtype: bool
Process incoming topic connection. Reads in topic name from handshake and creates the appropriate L{TCPROSPub} handler for the connection. @param sock: socket connection @type sock: socket.socket @param client_addr: client address @type client_addr: (str, int) @param header: key/value pairs from handshake header @type header: dict @return: error string or None @rtype: str