_InitialStepsService.py
Go to the documentation of this file.
00001 """autogenerated by genpy from bipedRobin_msgs/InitialStepsServiceRequest.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 bipedRobin_msgs.msg
00009 
00010 class InitialStepsServiceRequest(genpy.Message):
00011   _md5sum = "b7dfd29f4f6cc0bc5915f9827eb93493"
00012   _type = "bipedRobin_msgs/InitialStepsServiceRequest"
00013   _has_header = False #flag to mark the presence of a Header object
00014   _full_text = """
00015 bipedRobin_msgs/StepTarget3D left
00016 bipedRobin_msgs/StepTarget3D right
00017 
00018 ================================================================================
00019 MSG: bipedRobin_msgs/StepTarget3D
00020 # Target for a single stepping motion of a humanoid's leg
00021 
00022 geometry_msgs/Pose pose   # step pose absolute
00023 uint8 leg                   # which leg to use (left/right, see below)
00024 
00025 uint8 right=0               # right leg constant
00026 uint8 left=1                # left leg constant
00027 
00028 ================================================================================
00029 MSG: geometry_msgs/Pose
00030 # A representation of pose in free space, composed of postion and orientation. 
00031 Point position
00032 Quaternion orientation
00033 
00034 ================================================================================
00035 MSG: geometry_msgs/Point
00036 # This contains the position of a point in free space
00037 float64 x
00038 float64 y
00039 float64 z
00040 
00041 ================================================================================
00042 MSG: geometry_msgs/Quaternion
00043 # This represents an orientation in free space in quaternion form.
00044 
00045 float64 x
00046 float64 y
00047 float64 z
00048 float64 w
00049 
00050 """
00051   __slots__ = ['left','right']
00052   _slot_types = ['bipedRobin_msgs/StepTarget3D','bipedRobin_msgs/StepTarget3D']
00053 
00054   def __init__(self, *args, **kwds):
00055     """
00056     Constructor. Any message fields that are implicitly/explicitly
00057     set to None will be assigned a default value. The recommend
00058     use is keyword arguments as this is more robust to future message
00059     changes.  You cannot mix in-order arguments and keyword arguments.
00060 
00061     The available fields are:
00062        left,right
00063 
00064     :param args: complete set of field values, in .msg order
00065     :param kwds: use keyword arguments corresponding to message field names
00066     to set specific fields.
00067     """
00068     if args or kwds:
00069       super(InitialStepsServiceRequest, self).__init__(*args, **kwds)
00070       #message fields cannot be None, assign default values for those that are
00071       if self.left is None:
00072         self.left = bipedRobin_msgs.msg.StepTarget3D()
00073       if self.right is None:
00074         self.right = bipedRobin_msgs.msg.StepTarget3D()
00075     else:
00076       self.left = bipedRobin_msgs.msg.StepTarget3D()
00077       self.right = bipedRobin_msgs.msg.StepTarget3D()
00078 
00079   def _get_types(self):
00080     """
00081     internal API method
00082     """
00083     return self._slot_types
00084 
00085   def serialize(self, buff):
00086     """
00087     serialize message into buffer
00088     :param buff: buffer, ``StringIO``
00089     """
00090     try:
00091       _x = self
00092       buff.write(_struct_7dB7dB.pack(_x.left.pose.position.x, _x.left.pose.position.y, _x.left.pose.position.z, _x.left.pose.orientation.x, _x.left.pose.orientation.y, _x.left.pose.orientation.z, _x.left.pose.orientation.w, _x.left.leg, _x.right.pose.position.x, _x.right.pose.position.y, _x.right.pose.position.z, _x.right.pose.orientation.x, _x.right.pose.orientation.y, _x.right.pose.orientation.z, _x.right.pose.orientation.w, _x.right.leg))
00093     except struct.error as se: self._check_types(se)
00094     except TypeError as te: self._check_types(te)
00095 
00096   def deserialize(self, str):
00097     """
00098     unpack serialized message in str into this message instance
00099     :param str: byte array of serialized message, ``str``
00100     """
00101     try:
00102       if self.left is None:
00103         self.left = bipedRobin_msgs.msg.StepTarget3D()
00104       if self.right is None:
00105         self.right = bipedRobin_msgs.msg.StepTarget3D()
00106       end = 0
00107       _x = self
00108       start = end
00109       end += 114
00110       (_x.left.pose.position.x, _x.left.pose.position.y, _x.left.pose.position.z, _x.left.pose.orientation.x, _x.left.pose.orientation.y, _x.left.pose.orientation.z, _x.left.pose.orientation.w, _x.left.leg, _x.right.pose.position.x, _x.right.pose.position.y, _x.right.pose.position.z, _x.right.pose.orientation.x, _x.right.pose.orientation.y, _x.right.pose.orientation.z, _x.right.pose.orientation.w, _x.right.leg,) = _struct_7dB7dB.unpack(str[start:end])
00111       return self
00112     except struct.error as e:
00113       raise genpy.DeserializationError(e) #most likely buffer underfill
00114 
00115 
00116   def serialize_numpy(self, buff, numpy):
00117     """
00118     serialize message with numpy array types into buffer
00119     :param buff: buffer, ``StringIO``
00120     :param numpy: numpy python module
00121     """
00122     try:
00123       _x = self
00124       buff.write(_struct_7dB7dB.pack(_x.left.pose.position.x, _x.left.pose.position.y, _x.left.pose.position.z, _x.left.pose.orientation.x, _x.left.pose.orientation.y, _x.left.pose.orientation.z, _x.left.pose.orientation.w, _x.left.leg, _x.right.pose.position.x, _x.right.pose.position.y, _x.right.pose.position.z, _x.right.pose.orientation.x, _x.right.pose.orientation.y, _x.right.pose.orientation.z, _x.right.pose.orientation.w, _x.right.leg))
00125     except struct.error as se: self._check_types(se)
00126     except TypeError as te: self._check_types(te)
00127 
00128   def deserialize_numpy(self, str, numpy):
00129     """
00130     unpack serialized message in str into this message instance using numpy for array types
00131     :param str: byte array of serialized message, ``str``
00132     :param numpy: numpy python module
00133     """
00134     try:
00135       if self.left is None:
00136         self.left = bipedRobin_msgs.msg.StepTarget3D()
00137       if self.right is None:
00138         self.right = bipedRobin_msgs.msg.StepTarget3D()
00139       end = 0
00140       _x = self
00141       start = end
00142       end += 114
00143       (_x.left.pose.position.x, _x.left.pose.position.y, _x.left.pose.position.z, _x.left.pose.orientation.x, _x.left.pose.orientation.y, _x.left.pose.orientation.z, _x.left.pose.orientation.w, _x.left.leg, _x.right.pose.position.x, _x.right.pose.position.y, _x.right.pose.position.z, _x.right.pose.orientation.x, _x.right.pose.orientation.y, _x.right.pose.orientation.z, _x.right.pose.orientation.w, _x.right.leg,) = _struct_7dB7dB.unpack(str[start:end])
00144       return self
00145     except struct.error as e:
00146       raise genpy.DeserializationError(e) #most likely buffer underfill
00147 
00148 _struct_I = genpy.struct_I
00149 _struct_7dB7dB = struct.Struct("<7dB7dB")
00150 """autogenerated by genpy from bipedRobin_msgs/InitialStepsServiceResponse.msg. Do not edit."""
00151 import sys
00152 python3 = True if sys.hexversion > 0x03000000 else False
00153 import genpy
00154 import struct
00155 
00156 
00157 class InitialStepsServiceResponse(genpy.Message):
00158   _md5sum = "d41d8cd98f00b204e9800998ecf8427e"
00159   _type = "bipedRobin_msgs/InitialStepsServiceResponse"
00160   _has_header = False #flag to mark the presence of a Header object
00161   _full_text = """
00162 
00163 """
00164   __slots__ = []
00165   _slot_types = []
00166 
00167   def __init__(self, *args, **kwds):
00168     """
00169     Constructor. Any message fields that are implicitly/explicitly
00170     set to None will be assigned a default value. The recommend
00171     use is keyword arguments as this is more robust to future message
00172     changes.  You cannot mix in-order arguments and keyword arguments.
00173 
00174     The available fields are:
00175        
00176 
00177     :param args: complete set of field values, in .msg order
00178     :param kwds: use keyword arguments corresponding to message field names
00179     to set specific fields.
00180     """
00181     if args or kwds:
00182       super(InitialStepsServiceResponse, self).__init__(*args, **kwds)
00183 
00184   def _get_types(self):
00185     """
00186     internal API method
00187     """
00188     return self._slot_types
00189 
00190   def serialize(self, buff):
00191     """
00192     serialize message into buffer
00193     :param buff: buffer, ``StringIO``
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(self, str):
00201     """
00202     unpack serialized message in str into this message instance
00203     :param str: byte array of serialized message, ``str``
00204     """
00205     try:
00206       end = 0
00207       return self
00208     except struct.error as e:
00209       raise genpy.DeserializationError(e) #most likely buffer underfill
00210 
00211 
00212   def serialize_numpy(self, buff, numpy):
00213     """
00214     serialize message with numpy array types into buffer
00215     :param buff: buffer, ``StringIO``
00216     :param numpy: numpy python module
00217     """
00218     try:
00219       pass
00220     except struct.error as se: self._check_types(se)
00221     except TypeError as te: self._check_types(te)
00222 
00223   def deserialize_numpy(self, str, numpy):
00224     """
00225     unpack serialized message in str into this message instance using numpy for array types
00226     :param str: byte array of serialized message, ``str``
00227     :param numpy: numpy python module
00228     """
00229     try:
00230       end = 0
00231       return self
00232     except struct.error as e:
00233       raise genpy.DeserializationError(e) #most likely buffer underfill
00234 
00235 _struct_I = genpy.struct_I
00236 class InitialStepsService(object):
00237   _type          = 'bipedRobin_msgs/InitialStepsService'
00238   _md5sum = 'b7dfd29f4f6cc0bc5915f9827eb93493'
00239   _request_class  = InitialStepsServiceRequest
00240   _response_class = InitialStepsServiceResponse


bipedRobin_msgs
Author(s): Studentenaccount
autogenerated on Fri Nov 15 2013 11:10:20