Primo commit Completo
This commit is contained in:
280
devel/lib/python2.7/dist-packages/ur_msgs/srv/_SetIO.py
Normal file
280
devel/lib/python2.7/dist-packages/ur_msgs/srv/_SetIO.py
Normal file
@@ -0,0 +1,280 @@
|
||||
# This Python file uses the following encoding: utf-8
|
||||
"""autogenerated by genpy from ur_msgs/SetIORequest.msg. Do not edit."""
|
||||
import sys
|
||||
python3 = True if sys.hexversion > 0x03000000 else False
|
||||
import genpy
|
||||
import struct
|
||||
|
||||
|
||||
class SetIORequest(genpy.Message):
|
||||
_md5sum = "85200c86fbe60ea3e047bae3d6574bfd"
|
||||
_type = "ur_msgs/SetIORequest"
|
||||
_has_header = False #flag to mark the presence of a Header object
|
||||
_full_text = """
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
int8 FUN_SET_DIGITAL_OUT = 1
|
||||
int8 FUN_SET_FLAG = 2
|
||||
int8 FUN_SET_ANALOG_OUT = 3
|
||||
int8 FUN_SET_TOOL_VOLTAGE = 4
|
||||
|
||||
|
||||
int8 STATE_OFF = 0
|
||||
int8 STATE_ON = 1
|
||||
|
||||
|
||||
int8 STATE_TOOL_VOLTAGE_0V = 0
|
||||
int8 STATE_TOOL_VOLTAGE_12V = 12
|
||||
int8 STATE_TOOL_VOLTAGE_24V = 24
|
||||
|
||||
|
||||
int8 fun
|
||||
int8 pin
|
||||
float32 state
|
||||
"""
|
||||
# Pseudo-constants
|
||||
FUN_SET_DIGITAL_OUT = 1
|
||||
FUN_SET_FLAG = 2
|
||||
FUN_SET_ANALOG_OUT = 3
|
||||
FUN_SET_TOOL_VOLTAGE = 4
|
||||
STATE_OFF = 0
|
||||
STATE_ON = 1
|
||||
STATE_TOOL_VOLTAGE_0V = 0
|
||||
STATE_TOOL_VOLTAGE_12V = 12
|
||||
STATE_TOOL_VOLTAGE_24V = 24
|
||||
|
||||
__slots__ = ['fun','pin','state']
|
||||
_slot_types = ['int8','int8','float32']
|
||||
|
||||
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:
|
||||
fun,pin,state
|
||||
|
||||
: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(SetIORequest, self).__init__(*args, **kwds)
|
||||
#message fields cannot be None, assign default values for those that are
|
||||
if self.fun is None:
|
||||
self.fun = 0
|
||||
if self.pin is None:
|
||||
self.pin = 0
|
||||
if self.state is None:
|
||||
self.state = 0.
|
||||
else:
|
||||
self.fun = 0
|
||||
self.pin = 0
|
||||
self.state = 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:
|
||||
_x = self
|
||||
buff.write(_get_struct_2bf().pack(_x.fun, _x.pin, _x.state))
|
||||
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
|
||||
_x = self
|
||||
start = end
|
||||
end += 6
|
||||
(_x.fun, _x.pin, _x.state,) = _get_struct_2bf().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:
|
||||
_x = self
|
||||
buff.write(_get_struct_2bf().pack(_x.fun, _x.pin, _x.state))
|
||||
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
|
||||
_x = self
|
||||
start = end
|
||||
end += 6
|
||||
(_x.fun, _x.pin, _x.state,) = _get_struct_2bf().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_2bf = None
|
||||
def _get_struct_2bf():
|
||||
global _struct_2bf
|
||||
if _struct_2bf is None:
|
||||
_struct_2bf = struct.Struct("<2bf")
|
||||
return _struct_2bf
|
||||
# This Python file uses the following encoding: utf-8
|
||||
"""autogenerated by genpy from ur_msgs/SetIOResponse.msg. Do not edit."""
|
||||
import sys
|
||||
python3 = True if sys.hexversion > 0x03000000 else False
|
||||
import genpy
|
||||
import struct
|
||||
|
||||
|
||||
class SetIOResponse(genpy.Message):
|
||||
_md5sum = "358e233cde0c8a8bcfea4ce193f8fc15"
|
||||
_type = "ur_msgs/SetIOResponse"
|
||||
_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(SetIOResponse, 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 SetIO(object):
|
||||
_type = 'ur_msgs/SetIO'
|
||||
_md5sum = 'e1b580ccf43a938f2efbbb98bbe3e277'
|
||||
_request_class = SetIORequest
|
||||
_response_class = SetIOResponse
|
||||
BIN
devel/lib/python2.7/dist-packages/ur_msgs/srv/_SetIO.pyc
Normal file
BIN
devel/lib/python2.7/dist-packages/ur_msgs/srv/_SetIO.pyc
Normal file
Binary file not shown.
220
devel/lib/python2.7/dist-packages/ur_msgs/srv/_SetPayload.py
Normal file
220
devel/lib/python2.7/dist-packages/ur_msgs/srv/_SetPayload.py
Normal file
@@ -0,0 +1,220 @@
|
||||
# This Python file uses the following encoding: utf-8
|
||||
"""autogenerated by genpy from ur_msgs/SetPayloadRequest.msg. Do not edit."""
|
||||
import sys
|
||||
python3 = True if sys.hexversion > 0x03000000 else False
|
||||
import genpy
|
||||
import struct
|
||||
|
||||
|
||||
class SetPayloadRequest(genpy.Message):
|
||||
_md5sum = "d12269f931817591aa52047629ca66ca"
|
||||
_type = "ur_msgs/SetPayloadRequest"
|
||||
_has_header = False #flag to mark the presence of a Header object
|
||||
_full_text = """float32 payload
|
||||
"""
|
||||
__slots__ = ['payload']
|
||||
_slot_types = ['float32']
|
||||
|
||||
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:
|
||||
payload
|
||||
|
||||
: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(SetPayloadRequest, self).__init__(*args, **kwds)
|
||||
#message fields cannot be None, assign default values for those that are
|
||||
if self.payload is None:
|
||||
self.payload = 0.
|
||||
else:
|
||||
self.payload = 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_f().pack(self.payload))
|
||||
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 += 4
|
||||
(self.payload,) = _get_struct_f().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_f().pack(self.payload))
|
||||
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 += 4
|
||||
(self.payload,) = _get_struct_f().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_f = None
|
||||
def _get_struct_f():
|
||||
global _struct_f
|
||||
if _struct_f is None:
|
||||
_struct_f = struct.Struct("<f")
|
||||
return _struct_f
|
||||
# This Python file uses the following encoding: utf-8
|
||||
"""autogenerated by genpy from ur_msgs/SetPayloadResponse.msg. Do not edit."""
|
||||
import sys
|
||||
python3 = True if sys.hexversion > 0x03000000 else False
|
||||
import genpy
|
||||
import struct
|
||||
|
||||
|
||||
class SetPayloadResponse(genpy.Message):
|
||||
_md5sum = "358e233cde0c8a8bcfea4ce193f8fc15"
|
||||
_type = "ur_msgs/SetPayloadResponse"
|
||||
_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(SetPayloadResponse, 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 SetPayload(object):
|
||||
_type = 'ur_msgs/SetPayload'
|
||||
_md5sum = '7f12eb632882cb73e5721178d0073e39'
|
||||
_request_class = SetPayloadRequest
|
||||
_response_class = SetPayloadResponse
|
||||
BIN
devel/lib/python2.7/dist-packages/ur_msgs/srv/_SetPayload.pyc
Normal file
BIN
devel/lib/python2.7/dist-packages/ur_msgs/srv/_SetPayload.pyc
Normal file
Binary file not shown.
@@ -0,0 +1,2 @@
|
||||
from ._SetIO import *
|
||||
from ._SetPayload import *
|
||||
BIN
devel/lib/python2.7/dist-packages/ur_msgs/srv/__init__.pyc
Normal file
BIN
devel/lib/python2.7/dist-packages/ur_msgs/srv/__init__.pyc
Normal file
Binary file not shown.
Reference in New Issue
Block a user