Home | Trees | Indices | Help |
|
---|
|
Network APIs for ROS-based systems, including IP address and ROS TCP header libraries. Because ROS-based runtimes must respect the ROS_IP and ROS_HOSTNAME environment variables, ROS-specific APIs are necessary for correctly retrieving local IP address information.
roslib.network supports the netifaces library as an optional add-on. netifaces improves IP address configuration detection.
Classes | |
ROSHandshakeException Exception to represent errors decoding handshake |
Functions | |||
(str, int) |
|
||
str |
|
||
|
|||
str |
|
||
[str] |
|
||
str |
|
||
|
|||
str |
|
||
{str: str} |
|
||
{str: str} |
|
||
str |
|
||
int |
|
Variables | |
python3 = 0
|
|
SIOCGIFADDR = 35093
|
|
SIOCGIFCONF = 35090
|
|
__package__ =
|
Function Details |
Convenience routine to handle parsing and validation of HTTP URL port due to the fact that Python only provides easy accessors in Python 2.5 and later. Validation checks that the protocol and host are set.
|
|
|
|
|
|
Determine host-name for use in host-name-based addressing (e.g. XML-RPC URIs):
|
Determine the XMLRPC URI for local servers. This handles the search logic of checking ROS environment variables, the known hostname, and local interface IP addresses to determine the best possible URI.
|
Decode serialized ROS handshake header into a Python dictionary header is a list of string key=value pairs, each prefixed by a 4-byte length field. It is preceeded by a 4-byte length field for the entire header.
|
Read in tcpros header off the socket sock using buffer b.
|
Encode ROS handshake header as a byte string. Each header field is a string key value pair. The encoded header is prefixed by a length field, as is each field key/value pair. key/value pairs a separated by a '=' equals sign. FORMAT: (4-byte length + [4-byte field length + field=value ]*)
|
Write ROS handshake header header to socket sock
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Fri Jan 11 12:17:41 2013 | http://epydoc.sourceforge.net |