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