"""autogenerated by genmsg_py from EnvioPosDeseadaRequest.msg. Do not edit.""" import roslib.message import struct import modelquad.msg class EnvioPosDeseadaRequest(roslib.message.Message): _md5sum = "3508017c250dea6522da42dac600fc77" _type = "modelquad/EnvioPosDeseadaRequest" _has_header = False #flag to mark the presence of a Header object _full_text = """Position_RPY pos_des ================================================================================ MSG: modelquad/Position_RPY # Mensaje creado por mi debido a la inexistencia de ningun otro tipo de mensaje igual (POS+RPY) Point posicion # Es equivalente a: # float64 x Posicion (x,y,z) # float64 y # float64 z Point orientacion # Es equivalente a: # float64 r Orientacion angulos de euler (r,p,y) # float64 p # float64 y ================================================================================ MSG: modelquad/Point # This contains the position of a point in free space float64 x float64 y float64 z """ __slots__ = ['pos_des'] _slot_types = ['modelquad/Position_RPY'] def __init__(self, *args, **kwds): """ Constructor. Any message fields that are implicitly/explicitly set to None will be assigned a default value. The recommend use is keyword arguments as this is more robust to future message changes. You cannot mix in-order arguments and keyword arguments. The available fields are: pos_des @param args: complete set of field values, in .msg order @param kwds: use keyword arguments corresponding to message field names to set specific fields. """ if args or kwds: super(EnvioPosDeseadaRequest, self).__init__(*args, **kwds) #message fields cannot be None, assign default values for those that are if self.pos_des is None: self.pos_des = modelquad.msg.Position_RPY() else: self.pos_des = modelquad.msg.Position_RPY() def _get_types(self): """ internal API method """ return self._slot_types def serialize(self, buff): """ serialize message into buffer @param buff: buffer @type buff: StringIO """ try: _x = self buff.write(_struct_6d.pack(_x.pos_des.posicion.x, _x.pos_des.posicion.y, _x.pos_des.posicion.z, _x.pos_des.orientacion.x, _x.pos_des.orientacion.y, _x.pos_des.orientacion.z)) except struct.error as se: self._check_types(se) except TypeError as te: self._check_types(te) def deserialize(self, str): """ unpack serialized message in str into this message instance @param str: byte array of serialized message @type str: str """ try: if self.pos_des is None: self.pos_des = modelquad.msg.Position_RPY() end = 0 _x = self start = end end += 48 (_x.pos_des.posicion.x, _x.pos_des.posicion.y, _x.pos_des.posicion.z, _x.pos_des.orientacion.x, _x.pos_des.orientacion.y, _x.pos_des.orientacion.z,) = _struct_6d.unpack(str[start:end]) return self except struct.error as e: raise roslib.message.DeserializationError(e) #most likely buffer underfill def serialize_numpy(self, buff, numpy): """ serialize message with numpy array types into buffer @param buff: buffer @type buff: StringIO @param numpy: numpy python module @type numpy module """ try: _x = self buff.write(_struct_6d.pack(_x.pos_des.posicion.x, _x.pos_des.posicion.y, _x.pos_des.posicion.z, _x.pos_des.orientacion.x, _x.pos_des.orientacion.y, _x.pos_des.orientacion.z)) except struct.error as se: self._check_types(se) except TypeError as te: self._check_types(te) def deserialize_numpy(self, str, numpy): """ unpack serialized message in str into this message instance using numpy for array types @param str: byte array of serialized message @type str: str @param numpy: numpy python module @type numpy: module """ try: if self.pos_des is None: self.pos_des = modelquad.msg.Position_RPY() end = 0 _x = self start = end end += 48 (_x.pos_des.posicion.x, _x.pos_des.posicion.y, _x.pos_des.posicion.z, _x.pos_des.orientacion.x, _x.pos_des.orientacion.y, _x.pos_des.orientacion.z,) = _struct_6d.unpack(str[start:end]) return self except struct.error as e: raise roslib.message.DeserializationError(e) #most likely buffer underfill _struct_I = roslib.message.struct_I _struct_6d = struct.Struct("<6d") """autogenerated by genmsg_py from EnvioPosDeseadaResponse.msg. Do not edit.""" import roslib.message import struct class EnvioPosDeseadaResponse(roslib.message.Message): _md5sum = "51b48450662f00f28fcb94ae010f9e16" _type = "modelquad/EnvioPosDeseadaResponse" _has_header = False #flag to mark the presence of a Header object _full_text = """bool confirmacion """ __slots__ = ['confirmacion'] _slot_types = ['bool'] def __init__(self, *args, **kwds): """ Constructor. Any message fields that are implicitly/explicitly set to None will be assigned a default value. The recommend use is keyword arguments as this is more robust to future message changes. You cannot mix in-order arguments and keyword arguments. The available fields are: confirmacion @param args: complete set of field values, in .msg order @param kwds: use keyword arguments corresponding to message field names to set specific fields. """ if args or kwds: super(EnvioPosDeseadaResponse, self).__init__(*args, **kwds) #message fields cannot be None, assign default values for those that are if self.confirmacion is None: self.confirmacion = False else: self.confirmacion = False def _get_types(self): """ internal API method """ return self._slot_types def serialize(self, buff): """ serialize message into buffer @param buff: buffer @type buff: StringIO """ try: buff.write(_struct_B.pack(self.confirmacion)) except struct.error as se: self._check_types(se) except TypeError as te: self._check_types(te) def deserialize(self, str): """ unpack serialized message in str into this message instance @param str: byte array of serialized message @type str: str """ try: end = 0 start = end end += 1 (self.confirmacion,) = _struct_B.unpack(str[start:end]) self.confirmacion = bool(self.confirmacion) return self except struct.error as e: raise roslib.message.DeserializationError(e) #most likely buffer underfill def serialize_numpy(self, buff, numpy): """ serialize message with numpy array types into buffer @param buff: buffer @type buff: StringIO @param numpy: numpy python module @type numpy module """ try: buff.write(_struct_B.pack(self.confirmacion)) except struct.error as se: self._check_types(se) except TypeError as te: self._check_types(te) def deserialize_numpy(self, str, numpy): """ unpack serialized message in str into this message instance using numpy for array types @param str: byte array of serialized message @type str: str @param numpy: numpy python module @type numpy: module """ try: end = 0 start = end end += 1 (self.confirmacion,) = _struct_B.unpack(str[start:end]) self.confirmacion = bool(self.confirmacion) return self except struct.error as e: raise roslib.message.DeserializationError(e) #most likely buffer underfill _struct_I = roslib.message.struct_I _struct_B = struct.Struct(" e-REdING. Biblioteca de la Escuela Superior de Ingenieros de Sevilla.


MODELADO, CONTROL Y SIMULACIÓN DE UN QUADROTOR EQUIPADO CON UN BRAZO MANIPULADOR ROBÓTICO

: Ragel De La Torre, Ricardo
: Ingeniería Industrial
Contenido del proyecto:
Directorio raíz  >  ros_workspace  >  modelquad  >  src  >  modelquad  >  srv  >  _EnvioPosDeseada.py