aggiornati pacchetti universal_robot e universal_robots_ros_driver
This commit is contained in:
@@ -0,0 +1,225 @@
|
||||
# This Python file uses the following encoding: utf-8
|
||||
"""autogenerated by genpy from ur_msgs/SetSpeedSliderFractionRequest.msg. Do not edit."""
|
||||
import sys
|
||||
python3 = True if sys.hexversion > 0x03000000 else False
|
||||
import genpy
|
||||
import struct
|
||||
|
||||
|
||||
class SetSpeedSliderFractionRequest(genpy.Message):
|
||||
_md5sum = "64134244ab4dfc72a3406fe06d580274"
|
||||
_type = "ur_msgs/SetSpeedSliderFractionRequest"
|
||||
_has_header = False #flag to mark the presence of a Header object
|
||||
_full_text = """
|
||||
|
||||
|
||||
|
||||
|
||||
float64 speed_slider_fraction
|
||||
"""
|
||||
__slots__ = ['speed_slider_fraction']
|
||||
_slot_types = ['float64']
|
||||
|
||||
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:
|
||||
speed_slider_fraction
|
||||
|
||||
: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(SetSpeedSliderFractionRequest, self).__init__(*args, **kwds)
|
||||
#message fields cannot be None, assign default values for those that are
|
||||
if self.speed_slider_fraction is None:
|
||||
self.speed_slider_fraction = 0.
|
||||
else:
|
||||
self.speed_slider_fraction = 0.
|
||||
|
||||
def _get_types(self):
|
||||
"""
|
||||
internal API method
|
||||
"""
|
||||
return self._slot_types
|
||||
|
||||
def serialize(self, buff):
|
||||
"""
|
||||
serialize message into buffer
|
||||
:param buff: buffer, ``StringIO``
|
||||
"""
|
||||
try:
|
||||
buff.write(_get_struct_d().pack(self.speed_slider_fraction))
|
||||
except struct.error as se: self._check_types(struct.error("%s: '%s' when writing '%s'" % (type(se), str(se), str(locals().get('_x', self)))))
|
||||
except TypeError as te: self._check_types(ValueError("%s: '%s' when writing '%s'" % (type(te), str(te), str(locals().get('_x', self)))))
|
||||
|
||||
def deserialize(self, str):
|
||||
"""
|
||||
unpack serialized message in str into this message instance
|
||||
:param str: byte array of serialized message, ``str``
|
||||
"""
|
||||
try:
|
||||
end = 0
|
||||
start = end
|
||||
end += 8
|
||||
(self.speed_slider_fraction,) = _get_struct_d().unpack(str[start:end])
|
||||
return self
|
||||
except struct.error as e:
|
||||
raise genpy.DeserializationError(e) #most likely buffer underfill
|
||||
|
||||
|
||||
def serialize_numpy(self, buff, numpy):
|
||||
"""
|
||||
serialize message with numpy array types into buffer
|
||||
:param buff: buffer, ``StringIO``
|
||||
:param numpy: numpy python module
|
||||
"""
|
||||
try:
|
||||
buff.write(_get_struct_d().pack(self.speed_slider_fraction))
|
||||
except struct.error as se: self._check_types(struct.error("%s: '%s' when writing '%s'" % (type(se), str(se), str(locals().get('_x', self)))))
|
||||
except TypeError as te: self._check_types(ValueError("%s: '%s' when writing '%s'" % (type(te), str(te), str(locals().get('_x', self)))))
|
||||
|
||||
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, ``str``
|
||||
:param numpy: numpy python module
|
||||
"""
|
||||
try:
|
||||
end = 0
|
||||
start = end
|
||||
end += 8
|
||||
(self.speed_slider_fraction,) = _get_struct_d().unpack(str[start:end])
|
||||
return self
|
||||
except struct.error as e:
|
||||
raise genpy.DeserializationError(e) #most likely buffer underfill
|
||||
|
||||
_struct_I = genpy.struct_I
|
||||
def _get_struct_I():
|
||||
global _struct_I
|
||||
return _struct_I
|
||||
_struct_d = None
|
||||
def _get_struct_d():
|
||||
global _struct_d
|
||||
if _struct_d is None:
|
||||
_struct_d = struct.Struct("<d")
|
||||
return _struct_d
|
||||
# This Python file uses the following encoding: utf-8
|
||||
"""autogenerated by genpy from ur_msgs/SetSpeedSliderFractionResponse.msg. Do not edit."""
|
||||
import sys
|
||||
python3 = True if sys.hexversion > 0x03000000 else False
|
||||
import genpy
|
||||
import struct
|
||||
|
||||
|
||||
class SetSpeedSliderFractionResponse(genpy.Message):
|
||||
_md5sum = "358e233cde0c8a8bcfea4ce193f8fc15"
|
||||
_type = "ur_msgs/SetSpeedSliderFractionResponse"
|
||||
_has_header = False #flag to mark the presence of a Header object
|
||||
_full_text = """bool success
|
||||
|
||||
"""
|
||||
__slots__ = ['success']
|
||||
_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:
|
||||
success
|
||||
|
||||
: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(SetSpeedSliderFractionResponse, self).__init__(*args, **kwds)
|
||||
#message fields cannot be None, assign default values for those that are
|
||||
if self.success is None:
|
||||
self.success = False
|
||||
else:
|
||||
self.success = False
|
||||
|
||||
def _get_types(self):
|
||||
"""
|
||||
internal API method
|
||||
"""
|
||||
return self._slot_types
|
||||
|
||||
def serialize(self, buff):
|
||||
"""
|
||||
serialize message into buffer
|
||||
:param buff: buffer, ``StringIO``
|
||||
"""
|
||||
try:
|
||||
buff.write(_get_struct_B().pack(self.success))
|
||||
except struct.error as se: self._check_types(struct.error("%s: '%s' when writing '%s'" % (type(se), str(se), str(locals().get('_x', self)))))
|
||||
except TypeError as te: self._check_types(ValueError("%s: '%s' when writing '%s'" % (type(te), str(te), str(locals().get('_x', self)))))
|
||||
|
||||
def deserialize(self, str):
|
||||
"""
|
||||
unpack serialized message in str into this message instance
|
||||
:param str: byte array of serialized message, ``str``
|
||||
"""
|
||||
try:
|
||||
end = 0
|
||||
start = end
|
||||
end += 1
|
||||
(self.success,) = _get_struct_B().unpack(str[start:end])
|
||||
self.success = bool(self.success)
|
||||
return self
|
||||
except struct.error as e:
|
||||
raise genpy.DeserializationError(e) #most likely buffer underfill
|
||||
|
||||
|
||||
def serialize_numpy(self, buff, numpy):
|
||||
"""
|
||||
serialize message with numpy array types into buffer
|
||||
:param buff: buffer, ``StringIO``
|
||||
:param numpy: numpy python module
|
||||
"""
|
||||
try:
|
||||
buff.write(_get_struct_B().pack(self.success))
|
||||
except struct.error as se: self._check_types(struct.error("%s: '%s' when writing '%s'" % (type(se), str(se), str(locals().get('_x', self)))))
|
||||
except TypeError as te: self._check_types(ValueError("%s: '%s' when writing '%s'" % (type(te), str(te), str(locals().get('_x', self)))))
|
||||
|
||||
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, ``str``
|
||||
:param numpy: numpy python module
|
||||
"""
|
||||
try:
|
||||
end = 0
|
||||
start = end
|
||||
end += 1
|
||||
(self.success,) = _get_struct_B().unpack(str[start:end])
|
||||
self.success = bool(self.success)
|
||||
return self
|
||||
except struct.error as e:
|
||||
raise genpy.DeserializationError(e) #most likely buffer underfill
|
||||
|
||||
_struct_I = genpy.struct_I
|
||||
def _get_struct_I():
|
||||
global _struct_I
|
||||
return _struct_I
|
||||
_struct_B = None
|
||||
def _get_struct_B():
|
||||
global _struct_B
|
||||
if _struct_B is None:
|
||||
_struct_B = struct.Struct("<B")
|
||||
return _struct_B
|
||||
class SetSpeedSliderFraction(object):
|
||||
_type = 'ur_msgs/SetSpeedSliderFraction'
|
||||
_md5sum = '172aeb6c49379a44cf68480fa5bfad3c'
|
||||
_request_class = SetSpeedSliderFractionRequest
|
||||
_response_class = SetSpeedSliderFractionResponse
|
||||
@@ -1,2 +1,3 @@
|
||||
from ._SetIO import *
|
||||
from ._SetPayload import *
|
||||
from ._SetSpeedSliderFraction import *
|
||||
|
||||
Reference in New Issue
Block a user