00001 """autogenerated by genmsg_py from TransitiveSrvRequest.msg. Do not edit."""
00002 import roslib.message
00003 import struct
00004
00005 import test_rospy.msg
00006 import test_ros.msg
00007
00008 class TransitiveSrvRequest(roslib.message.Message):
00009 _md5sum = "c9627b8665f2e2514f3d19406d2ed17d"
00010 _type = "test_rospy/TransitiveSrvRequest"
00011 _has_header = False
00012 _full_text = """test_rospy/TransitiveMsg1 msg
00013
00014 ================================================================================
00015 MSG: test_rospy/TransitiveMsg1
00016 TransitiveMsg2 msg2
00017
00018
00019 ================================================================================
00020 MSG: test_rospy/TransitiveMsg2
00021 test_ros/Composite data
00022
00023 ================================================================================
00024 MSG: test_ros/Composite
00025 # composite message. required for testing import calculation in generators
00026 CompositeA a
00027 CompositeB b
00028
00029 ================================================================================
00030 MSG: test_ros/CompositeA
00031 # This represents an orientation in free space in quaternion form.
00032
00033 float64 x
00034 float64 y
00035 float64 z
00036 float64 w
00037
00038 ================================================================================
00039 MSG: test_ros/CompositeB
00040 # copy of geometry_msgs/Point for testing
00041 float64 x
00042 float64 y
00043 float64 z
00044
00045 """
00046 __slots__ = ['msg']
00047 _slot_types = ['test_rospy/TransitiveMsg1']
00048
00049 def __init__(self, *args, **kwds):
00050 """
00051 Constructor. Any message fields that are implicitly/explicitly
00052 set to None will be assigned a default value. The recommend
00053 use is keyword arguments as this is more robust to future message
00054 changes. You cannot mix in-order arguments and keyword arguments.
00055
00056 The available fields are:
00057 msg
00058
00059 @param args: complete set of field values, in .msg order
00060 @param kwds: use keyword arguments corresponding to message field names
00061 to set specific fields.
00062 """
00063 if args or kwds:
00064 super(TransitiveSrvRequest, self).__init__(*args, **kwds)
00065
00066 if self.msg is None:
00067 self.msg = test_rospy.msg.TransitiveMsg1()
00068 else:
00069 self.msg = test_rospy.msg.TransitiveMsg1()
00070
00071 def _get_types(self):
00072 """
00073 internal API method
00074 """
00075 return self._slot_types
00076
00077 def serialize(self, buff):
00078 """
00079 serialize message into buffer
00080 @param buff: buffer
00081 @type buff: StringIO
00082 """
00083 try:
00084 _x = self
00085 buff.write(_struct_7d.pack(_x.msg.msg2.data.a.x, _x.msg.msg2.data.a.y, _x.msg.msg2.data.a.z, _x.msg.msg2.data.a.w, _x.msg.msg2.data.b.x, _x.msg.msg2.data.b.y, _x.msg.msg2.data.b.z))
00086 except struct.error, se: self._check_types(se)
00087 except TypeError, te: self._check_types(te)
00088
00089 def deserialize(self, str):
00090 """
00091 unpack serialized message in str into this message instance
00092 @param str: byte array of serialized message
00093 @type str: str
00094 """
00095 try:
00096 if self.msg is None:
00097 self.msg = test_rospy.msg.TransitiveMsg1()
00098 end = 0
00099 _x = self
00100 start = end
00101 end += 56
00102 (_x.msg.msg2.data.a.x, _x.msg.msg2.data.a.y, _x.msg.msg2.data.a.z, _x.msg.msg2.data.a.w, _x.msg.msg2.data.b.x, _x.msg.msg2.data.b.y, _x.msg.msg2.data.b.z,) = _struct_7d.unpack(str[start:end])
00103 return self
00104 except struct.error, e:
00105 raise roslib.message.DeserializationError(e)
00106
00107
00108 def serialize_numpy(self, buff, numpy):
00109 """
00110 serialize message with numpy array types into buffer
00111 @param buff: buffer
00112 @type buff: StringIO
00113 @param numpy: numpy python module
00114 @type numpy module
00115 """
00116 try:
00117 _x = self
00118 buff.write(_struct_7d.pack(_x.msg.msg2.data.a.x, _x.msg.msg2.data.a.y, _x.msg.msg2.data.a.z, _x.msg.msg2.data.a.w, _x.msg.msg2.data.b.x, _x.msg.msg2.data.b.y, _x.msg.msg2.data.b.z))
00119 except struct.error, se: self._check_types(se)
00120 except TypeError, 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
00126 @type str: str
00127 @param numpy: numpy python module
00128 @type numpy: module
00129 """
00130 try:
00131 if self.msg is None:
00132 self.msg = test_rospy.msg.TransitiveMsg1()
00133 end = 0
00134 _x = self
00135 start = end
00136 end += 56
00137 (_x.msg.msg2.data.a.x, _x.msg.msg2.data.a.y, _x.msg.msg2.data.a.z, _x.msg.msg2.data.a.w, _x.msg.msg2.data.b.x, _x.msg.msg2.data.b.y, _x.msg.msg2.data.b.z,) = _struct_7d.unpack(str[start:end])
00138 return self
00139 except struct.error, e:
00140 raise roslib.message.DeserializationError(e)
00141
00142 _struct_I = roslib.message.struct_I
00143 _struct_7d = struct.Struct("<7d")
00144 """autogenerated by genmsg_py from TransitiveSrvResponse.msg. Do not edit."""
00145 import roslib.message
00146 import struct
00147
00148
00149 class TransitiveSrvResponse(roslib.message.Message):
00150 _md5sum = "5c9fb1a886e81e3162a5c87bf55c072b"
00151 _type = "test_rospy/TransitiveSrvResponse"
00152 _has_header = False
00153 _full_text = """int32 a
00154
00155
00156
00157 """
00158 __slots__ = ['a']
00159 _slot_types = ['int32']
00160
00161 def __init__(self, *args, **kwds):
00162 """
00163 Constructor. Any message fields that are implicitly/explicitly
00164 set to None will be assigned a default value. The recommend
00165 use is keyword arguments as this is more robust to future message
00166 changes. You cannot mix in-order arguments and keyword arguments.
00167
00168 The available fields are:
00169 a
00170
00171 @param args: complete set of field values, in .msg order
00172 @param kwds: use keyword arguments corresponding to message field names
00173 to set specific fields.
00174 """
00175 if args or kwds:
00176 super(TransitiveSrvResponse, self).__init__(*args, **kwds)
00177
00178 if self.a is None:
00179 self.a = 0
00180 else:
00181 self.a = 0
00182
00183 def _get_types(self):
00184 """
00185 internal API method
00186 """
00187 return self._slot_types
00188
00189 def serialize(self, buff):
00190 """
00191 serialize message into buffer
00192 @param buff: buffer
00193 @type buff: StringIO
00194 """
00195 try:
00196 buff.write(_struct_i.pack(self.a))
00197 except struct.error, se: self._check_types(se)
00198 except TypeError, 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
00204 @type str: str
00205 """
00206 try:
00207 end = 0
00208 start = end
00209 end += 4
00210 (self.a,) = _struct_i.unpack(str[start:end])
00211 return self
00212 except struct.error, e:
00213 raise roslib.message.DeserializationError(e)
00214
00215
00216 def serialize_numpy(self, buff, numpy):
00217 """
00218 serialize message with numpy array types into buffer
00219 @param buff: buffer
00220 @type buff: StringIO
00221 @param numpy: numpy python module
00222 @type numpy module
00223 """
00224 try:
00225 buff.write(_struct_i.pack(self.a))
00226 except struct.error, se: self._check_types(se)
00227 except TypeError, te: self._check_types(te)
00228
00229 def deserialize_numpy(self, str, numpy):
00230 """
00231 unpack serialized message in str into this message instance using numpy for array types
00232 @param str: byte array of serialized message
00233 @type str: str
00234 @param numpy: numpy python module
00235 @type numpy: module
00236 """
00237 try:
00238 end = 0
00239 start = end
00240 end += 4
00241 (self.a,) = _struct_i.unpack(str[start:end])
00242 return self
00243 except struct.error, e:
00244 raise roslib.message.DeserializationError(e)
00245
00246 _struct_I = roslib.message.struct_I
00247 _struct_i = struct.Struct("<i")
00248 class TransitiveSrv(roslib.message.ServiceDefinition):
00249 _type = 'test_rospy/TransitiveSrv'
00250 _md5sum = '8b7918ee2b81eaf825f4c70de011f6fa'
00251 _request_class = TransitiveSrvRequest
00252 _response_class = TransitiveSrvResponse