_StepTargetService.py
Go to the documentation of this file.
00001 """autogenerated by genpy from humanoid_nav_msgs/StepTargetServiceRequest.msg. Do not edit."""
00002 import sys
00003 python3 = True if sys.hexversion > 0x03000000 else False
00004 import genpy
00005 import struct
00006 
00007 import geometry_msgs.msg
00008 import humanoid_nav_msgs.msg
00009 
00010 class StepTargetServiceRequest(genpy.Message):
00011   _md5sum = "f22cfce442b381849d82602383b052c7"
00012   _type = "humanoid_nav_msgs/StepTargetServiceRequest"
00013   _has_header = False #flag to mark the presence of a Header object
00014   _full_text = """
00015 humanoid_nav_msgs/StepTarget step
00016 
00017 ================================================================================
00018 MSG: humanoid_nav_msgs/StepTarget
00019 # Target for a single stepping motion of a humanoid's leg
00020 
00021 geometry_msgs/Pose2D pose   # step pose as relative offset to last leg
00022 uint8 leg                   # which leg to use (left/right, see below)
00023 
00024 uint8 right=0               # right leg constant
00025 uint8 left=1                # left leg constant
00026 
00027 ================================================================================
00028 MSG: geometry_msgs/Pose2D
00029 # This expresses a position and orientation on a 2D manifold.
00030 
00031 float64 x
00032 float64 y
00033 float64 theta
00034 """
00035   __slots__ = ['step']
00036   _slot_types = ['humanoid_nav_msgs/StepTarget']
00037 
00038   def __init__(self, *args, **kwds):
00039     """
00040     Constructor. Any message fields that are implicitly/explicitly
00041     set to None will be assigned a default value. The recommend
00042     use is keyword arguments as this is more robust to future message
00043     changes.  You cannot mix in-order arguments and keyword arguments.
00044 
00045     The available fields are:
00046        step
00047 
00048     :param args: complete set of field values, in .msg order
00049     :param kwds: use keyword arguments corresponding to message field names
00050     to set specific fields.
00051     """
00052     if args or kwds:
00053       super(StepTargetServiceRequest, self).__init__(*args, **kwds)
00054       #message fields cannot be None, assign default values for those that are
00055       if self.step is None:
00056         self.step = humanoid_nav_msgs.msg.StepTarget()
00057     else:
00058       self.step = humanoid_nav_msgs.msg.StepTarget()
00059 
00060   def _get_types(self):
00061     """
00062     internal API method
00063     """
00064     return self._slot_types
00065 
00066   def serialize(self, buff):
00067     """
00068     serialize message into buffer
00069     :param buff: buffer, ``StringIO``
00070     """
00071     try:
00072       _x = self
00073       buff.write(_struct_3dB.pack(_x.step.pose.x, _x.step.pose.y, _x.step.pose.theta, _x.step.leg))
00074     except struct.error as se: self._check_types(se)
00075     except TypeError as te: self._check_types(te)
00076 
00077   def deserialize(self, str):
00078     """
00079     unpack serialized message in str into this message instance
00080     :param str: byte array of serialized message, ``str``
00081     """
00082     try:
00083       if self.step is None:
00084         self.step = humanoid_nav_msgs.msg.StepTarget()
00085       end = 0
00086       _x = self
00087       start = end
00088       end += 25
00089       (_x.step.pose.x, _x.step.pose.y, _x.step.pose.theta, _x.step.leg,) = _struct_3dB.unpack(str[start:end])
00090       return self
00091     except struct.error as e:
00092       raise genpy.DeserializationError(e) #most likely buffer underfill
00093 
00094 
00095   def serialize_numpy(self, buff, numpy):
00096     """
00097     serialize message with numpy array types into buffer
00098     :param buff: buffer, ``StringIO``
00099     :param numpy: numpy python module
00100     """
00101     try:
00102       _x = self
00103       buff.write(_struct_3dB.pack(_x.step.pose.x, _x.step.pose.y, _x.step.pose.theta, _x.step.leg))
00104     except struct.error as se: self._check_types(se)
00105     except TypeError as te: self._check_types(te)
00106 
00107   def deserialize_numpy(self, str, numpy):
00108     """
00109     unpack serialized message in str into this message instance using numpy for array types
00110     :param str: byte array of serialized message, ``str``
00111     :param numpy: numpy python module
00112     """
00113     try:
00114       if self.step is None:
00115         self.step = humanoid_nav_msgs.msg.StepTarget()
00116       end = 0
00117       _x = self
00118       start = end
00119       end += 25
00120       (_x.step.pose.x, _x.step.pose.y, _x.step.pose.theta, _x.step.leg,) = _struct_3dB.unpack(str[start:end])
00121       return self
00122     except struct.error as e:
00123       raise genpy.DeserializationError(e) #most likely buffer underfill
00124 
00125 _struct_I = genpy.struct_I
00126 _struct_3dB = struct.Struct("<3dB")
00127 """autogenerated by genpy from humanoid_nav_msgs/StepTargetServiceResponse.msg. Do not edit."""
00128 import sys
00129 python3 = True if sys.hexversion > 0x03000000 else False
00130 import genpy
00131 import struct
00132 
00133 
00134 class StepTargetServiceResponse(genpy.Message):
00135   _md5sum = "d41d8cd98f00b204e9800998ecf8427e"
00136   _type = "humanoid_nav_msgs/StepTargetServiceResponse"
00137   _has_header = False #flag to mark the presence of a Header object
00138   _full_text = """
00139 
00140 """
00141   __slots__ = []
00142   _slot_types = []
00143 
00144   def __init__(self, *args, **kwds):
00145     """
00146     Constructor. Any message fields that are implicitly/explicitly
00147     set to None will be assigned a default value. The recommend
00148     use is keyword arguments as this is more robust to future message
00149     changes.  You cannot mix in-order arguments and keyword arguments.
00150 
00151     The available fields are:
00152        
00153 
00154     :param args: complete set of field values, in .msg order
00155     :param kwds: use keyword arguments corresponding to message field names
00156     to set specific fields.
00157     """
00158     if args or kwds:
00159       super(StepTargetServiceResponse, self).__init__(*args, **kwds)
00160 
00161   def _get_types(self):
00162     """
00163     internal API method
00164     """
00165     return self._slot_types
00166 
00167   def serialize(self, buff):
00168     """
00169     serialize message into buffer
00170     :param buff: buffer, ``StringIO``
00171     """
00172     try:
00173       pass
00174     except struct.error as se: self._check_types(se)
00175     except TypeError as te: self._check_types(te)
00176 
00177   def deserialize(self, str):
00178     """
00179     unpack serialized message in str into this message instance
00180     :param str: byte array of serialized message, ``str``
00181     """
00182     try:
00183       end = 0
00184       return self
00185     except struct.error as e:
00186       raise genpy.DeserializationError(e) #most likely buffer underfill
00187 
00188 
00189   def serialize_numpy(self, buff, numpy):
00190     """
00191     serialize message with numpy array types into buffer
00192     :param buff: buffer, ``StringIO``
00193     :param numpy: numpy python module
00194     """
00195     try:
00196       pass
00197     except struct.error as se: self._check_types(se)
00198     except TypeError as te: self._check_types(te)
00199 
00200   def deserialize_numpy(self, str, numpy):
00201     """
00202     unpack serialized message in str into this message instance using numpy for array types
00203     :param str: byte array of serialized message, ``str``
00204     :param numpy: numpy python module
00205     """
00206     try:
00207       end = 0
00208       return self
00209     except struct.error as e:
00210       raise genpy.DeserializationError(e) #most likely buffer underfill
00211 
00212 _struct_I = genpy.struct_I
00213 class StepTargetService(object):
00214   _type          = 'humanoid_nav_msgs/StepTargetService'
00215   _md5sum = 'f22cfce442b381849d82602383b052c7'
00216   _request_class  = StepTargetServiceRequest
00217   _response_class = StepTargetServiceResponse
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends


humanoid_nav_msgs
Author(s): Armin Hornung
autogenerated on Tue Oct 15 2013 10:05:54