_SetMixedPositionVelocityPidGains.py
Go to the documentation of this file.
00001 """autogenerated by genpy from sr_robot_msgs/SetMixedPositionVelocityPidGainsRequest.msg. Do not edit."""
00002 import sys
00003 python3 = True if sys.hexversion > 0x03000000 else False
00004 import genpy
00005 import struct
00006 
00007 
00008 class SetMixedPositionVelocityPidGainsRequest(genpy.Message):
00009   _md5sum = "ff95ce4d442c9454d3d943f0c999da89"
00010   _type = "sr_robot_msgs/SetMixedPositionVelocityPidGainsRequest"
00011   _has_header = False #flag to mark the presence of a Header object
00012   _full_text = """float64 position_p
00013 float64 position_i
00014 float64 position_d
00015 float64 position_i_clamp
00016 float64 min_velocity
00017 float64 max_velocity
00018 float64 position_deadband
00019 
00020 float64 velocity_p
00021 float64 velocity_i
00022 float64 velocity_d
00023 float64 velocity_i_clamp
00024 float64 max_force
00025 
00026 int32 friction_deadband
00027 
00028 """
00029   __slots__ = ['position_p','position_i','position_d','position_i_clamp','min_velocity','max_velocity','position_deadband','velocity_p','velocity_i','velocity_d','velocity_i_clamp','max_force','friction_deadband']
00030   _slot_types = ['float64','float64','float64','float64','float64','float64','float64','float64','float64','float64','float64','float64','int32']
00031 
00032   def __init__(self, *args, **kwds):
00033     """
00034     Constructor. Any message fields that are implicitly/explicitly
00035     set to None will be assigned a default value. The recommend
00036     use is keyword arguments as this is more robust to future message
00037     changes.  You cannot mix in-order arguments and keyword arguments.
00038 
00039     The available fields are:
00040        position_p,position_i,position_d,position_i_clamp,min_velocity,max_velocity,position_deadband,velocity_p,velocity_i,velocity_d,velocity_i_clamp,max_force,friction_deadband
00041 
00042     :param args: complete set of field values, in .msg order
00043     :param kwds: use keyword arguments corresponding to message field names
00044     to set specific fields.
00045     """
00046     if args or kwds:
00047       super(SetMixedPositionVelocityPidGainsRequest, self).__init__(*args, **kwds)
00048       #message fields cannot be None, assign default values for those that are
00049       if self.position_p is None:
00050         self.position_p = 0.
00051       if self.position_i is None:
00052         self.position_i = 0.
00053       if self.position_d is None:
00054         self.position_d = 0.
00055       if self.position_i_clamp is None:
00056         self.position_i_clamp = 0.
00057       if self.min_velocity is None:
00058         self.min_velocity = 0.
00059       if self.max_velocity is None:
00060         self.max_velocity = 0.
00061       if self.position_deadband is None:
00062         self.position_deadband = 0.
00063       if self.velocity_p is None:
00064         self.velocity_p = 0.
00065       if self.velocity_i is None:
00066         self.velocity_i = 0.
00067       if self.velocity_d is None:
00068         self.velocity_d = 0.
00069       if self.velocity_i_clamp is None:
00070         self.velocity_i_clamp = 0.
00071       if self.max_force is None:
00072         self.max_force = 0.
00073       if self.friction_deadband is None:
00074         self.friction_deadband = 0
00075     else:
00076       self.position_p = 0.
00077       self.position_i = 0.
00078       self.position_d = 0.
00079       self.position_i_clamp = 0.
00080       self.min_velocity = 0.
00081       self.max_velocity = 0.
00082       self.position_deadband = 0.
00083       self.velocity_p = 0.
00084       self.velocity_i = 0.
00085       self.velocity_d = 0.
00086       self.velocity_i_clamp = 0.
00087       self.max_force = 0.
00088       self.friction_deadband = 0
00089 
00090   def _get_types(self):
00091     """
00092     internal API method
00093     """
00094     return self._slot_types
00095 
00096   def serialize(self, buff):
00097     """
00098     serialize message into buffer
00099     :param buff: buffer, ``StringIO``
00100     """
00101     try:
00102       _x = self
00103       buff.write(_struct_12di.pack(_x.position_p, _x.position_i, _x.position_d, _x.position_i_clamp, _x.min_velocity, _x.max_velocity, _x.position_deadband, _x.velocity_p, _x.velocity_i, _x.velocity_d, _x.velocity_i_clamp, _x.max_force, _x.friction_deadband))
00104     except struct.error as se: self._check_types(se)
00105     except TypeError as te: self._check_types(te)
00106 
00107   def deserialize(self, str):
00108     """
00109     unpack serialized message in str into this message instance
00110     :param str: byte array of serialized message, ``str``
00111     """
00112     try:
00113       end = 0
00114       _x = self
00115       start = end
00116       end += 100
00117       (_x.position_p, _x.position_i, _x.position_d, _x.position_i_clamp, _x.min_velocity, _x.max_velocity, _x.position_deadband, _x.velocity_p, _x.velocity_i, _x.velocity_d, _x.velocity_i_clamp, _x.max_force, _x.friction_deadband,) = _struct_12di.unpack(str[start:end])
00118       return self
00119     except struct.error as e:
00120       raise genpy.DeserializationError(e) #most likely buffer underfill
00121 
00122 
00123   def serialize_numpy(self, buff, numpy):
00124     """
00125     serialize message with numpy array types into buffer
00126     :param buff: buffer, ``StringIO``
00127     :param numpy: numpy python module
00128     """
00129     try:
00130       _x = self
00131       buff.write(_struct_12di.pack(_x.position_p, _x.position_i, _x.position_d, _x.position_i_clamp, _x.min_velocity, _x.max_velocity, _x.position_deadband, _x.velocity_p, _x.velocity_i, _x.velocity_d, _x.velocity_i_clamp, _x.max_force, _x.friction_deadband))
00132     except struct.error as se: self._check_types(se)
00133     except TypeError as te: self._check_types(te)
00134 
00135   def deserialize_numpy(self, str, numpy):
00136     """
00137     unpack serialized message in str into this message instance using numpy for array types
00138     :param str: byte array of serialized message, ``str``
00139     :param numpy: numpy python module
00140     """
00141     try:
00142       end = 0
00143       _x = self
00144       start = end
00145       end += 100
00146       (_x.position_p, _x.position_i, _x.position_d, _x.position_i_clamp, _x.min_velocity, _x.max_velocity, _x.position_deadband, _x.velocity_p, _x.velocity_i, _x.velocity_d, _x.velocity_i_clamp, _x.max_force, _x.friction_deadband,) = _struct_12di.unpack(str[start:end])
00147       return self
00148     except struct.error as e:
00149       raise genpy.DeserializationError(e) #most likely buffer underfill
00150 
00151 _struct_I = genpy.struct_I
00152 _struct_12di = struct.Struct("<12di")
00153 """autogenerated by genpy from sr_robot_msgs/SetMixedPositionVelocityPidGainsResponse.msg. Do not edit."""
00154 import sys
00155 python3 = True if sys.hexversion > 0x03000000 else False
00156 import genpy
00157 import struct
00158 
00159 
00160 class SetMixedPositionVelocityPidGainsResponse(genpy.Message):
00161   _md5sum = "d41d8cd98f00b204e9800998ecf8427e"
00162   _type = "sr_robot_msgs/SetMixedPositionVelocityPidGainsResponse"
00163   _has_header = False #flag to mark the presence of a Header object
00164   _full_text = """
00165 
00166 """
00167   __slots__ = []
00168   _slot_types = []
00169 
00170   def __init__(self, *args, **kwds):
00171     """
00172     Constructor. Any message fields that are implicitly/explicitly
00173     set to None will be assigned a default value. The recommend
00174     use is keyword arguments as this is more robust to future message
00175     changes.  You cannot mix in-order arguments and keyword arguments.
00176 
00177     The available fields are:
00178        
00179 
00180     :param args: complete set of field values, in .msg order
00181     :param kwds: use keyword arguments corresponding to message field names
00182     to set specific fields.
00183     """
00184     if args or kwds:
00185       super(SetMixedPositionVelocityPidGainsResponse, self).__init__(*args, **kwds)
00186 
00187   def _get_types(self):
00188     """
00189     internal API method
00190     """
00191     return self._slot_types
00192 
00193   def serialize(self, buff):
00194     """
00195     serialize message into buffer
00196     :param buff: buffer, ``StringIO``
00197     """
00198     try:
00199       pass
00200     except struct.error as se: self._check_types(se)
00201     except TypeError as te: self._check_types(te)
00202 
00203   def deserialize(self, str):
00204     """
00205     unpack serialized message in str into this message instance
00206     :param str: byte array of serialized message, ``str``
00207     """
00208     try:
00209       end = 0
00210       return self
00211     except struct.error as e:
00212       raise genpy.DeserializationError(e) #most likely buffer underfill
00213 
00214 
00215   def serialize_numpy(self, buff, numpy):
00216     """
00217     serialize message with numpy array types into buffer
00218     :param buff: buffer, ``StringIO``
00219     :param numpy: numpy python module
00220     """
00221     try:
00222       pass
00223     except struct.error as se: self._check_types(se)
00224     except TypeError as te: self._check_types(te)
00225 
00226   def deserialize_numpy(self, str, numpy):
00227     """
00228     unpack serialized message in str into this message instance using numpy for array types
00229     :param str: byte array of serialized message, ``str``
00230     :param numpy: numpy python module
00231     """
00232     try:
00233       end = 0
00234       return self
00235     except struct.error as e:
00236       raise genpy.DeserializationError(e) #most likely buffer underfill
00237 
00238 _struct_I = genpy.struct_I
00239 class SetMixedPositionVelocityPidGains(object):
00240   _type          = 'sr_robot_msgs/SetMixedPositionVelocityPidGains'
00241   _md5sum = 'ff95ce4d442c9454d3d943f0c999da89'
00242   _request_class  = SetMixedPositionVelocityPidGainsRequest
00243   _response_class = SetMixedPositionVelocityPidGainsResponse


sr_robot_msgs
Author(s): Ugo Cupcic/ugo@shadowrobot.com
autogenerated on Fri Jan 3 2014 12:01:40