Classes | Functions | Variables
rosbridge_library::internal::message_conversion Namespace Reference

Classes

class  FieldTypeMismatchException
class  InvalidMessageException
class  NonexistentFieldException

Functions

def _from_inst
def _from_list_inst
def _from_object_inst
def _to_binary_inst
def _to_inst
def _to_list_inst
def _to_object_inst
def _to_primitive_inst
def _to_time_inst
def extract_values
def populate_instance

Variables

tuple list_braces = re.compile(r'\[[^\]]*\]')
list list_types = [list, tuple]
list primitive_types = [bool, int, long, float]
list ros_binary_types = ["uint8[]", "char[]"]
list ros_header_types = ["Header", "std_msgs/Header", "roslib/Header"]
list ros_primitive_types
list ros_time_types = ["time", "duration"]
list string_types = [str, unicode]
dictionary type_map

Function Documentation

def rosbridge_library.internal.message_conversion._from_inst (   inst,
  rostype 
) [private]

Definition at line 97 of file message_conversion.py.

def rosbridge_library.internal.message_conversion._from_list_inst (   inst,
  rostype 
) [private]

Definition at line 118 of file message_conversion.py.

def rosbridge_library.internal.message_conversion._from_object_inst (   inst,
  rostype 
) [private]

Definition at line 134 of file message_conversion.py.

Definition at line 167 of file message_conversion.py.

def rosbridge_library.internal.message_conversion._to_inst (   msg,
  rostype,
  roottype,
  inst = None,
  stack = [] 
) [private]

Definition at line 143 of file message_conversion.py.

def rosbridge_library.internal.message_conversion._to_list_inst (   msg,
  rostype,
  roottype,
  inst,
  stack 
) [private]

Definition at line 214 of file message_conversion.py.

def rosbridge_library.internal.message_conversion._to_object_inst (   msg,
  rostype,
  roottype,
  inst,
  stack 
) [private]

Definition at line 230 of file message_conversion.py.

def rosbridge_library.internal.message_conversion._to_primitive_inst (   msg,
  rostype,
  roottype,
  stack 
) [private]

Definition at line 204 of file message_conversion.py.

def rosbridge_library.internal.message_conversion._to_time_inst (   msg,
  rostype,
  inst = None 
) [private]

Definition at line 180 of file message_conversion.py.

Definition at line 84 of file message_conversion.py.

Returns an instance of the provided class, with its fields populated
according to the values in msg 

Definition at line 91 of file message_conversion.py.


Variable Documentation

Definition at line 63 of file message_conversion.py.

Definition at line 56 of file message_conversion.py.

Definition at line 54 of file message_conversion.py.

Definition at line 62 of file message_conversion.py.

Definition at line 61 of file message_conversion.py.

Initial value:
00001 ["bool", "byte", "char", "int8", "uint8", "int16",
00002                        "uint16", "int32", "uint32", "int64", "uint64",
00003                        "float32", "float64", "string"]

Definition at line 58 of file message_conversion.py.

Definition at line 57 of file message_conversion.py.

Definition at line 55 of file message_conversion.py.

Initial value:
00001 {
00002    "bool":    ["bool"],
00003    "int":     ["int8", "byte", "uint8", "char",
00004                "int16", "uint16", "int32", "uint32",
00005                "int64", "uint64", "float32", "float64"],
00006    "float":   ["float32", "float64"],
00007    "str":     ["string"],
00008    "unicode": ["string"],
00009    "long":    ["uint64"]
00010 }

Definition at line 44 of file message_conversion.py.



rosbridge_library
Author(s): Jonathan Mace
autogenerated on Thu Jan 2 2014 11:53:35