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