cobotta2.bcapclient package

Submodules

cobotta2.bcapclient.bcapclient module

Software License Agreement (MIT License)

@copyright Copyright (c) 2017 DENSO WAVE INCORPORATED

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

class BCAPClient(host, port, timeout)[source]

Bases: object

_BCAP_EOT = 4
_BCAP_SOH = 1
_DICT_TYPE2VT = {<class 'bool'>: (11, 'h', False), <class 'ctypes.c_bool'>: (11, 'h', True), <class 'ctypes.c_double'>: (5, 'd', True), <class 'ctypes.c_float'>: (4, 'f', True), <class 'ctypes.c_int'>: (3, 'i', True), <class 'ctypes.c_long'>: (20, 'q', True), <class 'ctypes.c_short'>: (2, 'h', True), <class 'ctypes.c_ubyte'>: (17, 'B', True), <class 'ctypes.c_uint'>: (19, 'I', True), <class 'ctypes.c_ulong'>: (21, 'Q', True), <class 'ctypes.c_ushort'>: (18, 'H', True), <class 'ctypes.c_wchar_p'>: (8, 'I%ds', True), <class 'datetime.datetime'>: (7, 'd', False), <class 'float'>: (5, 'd', False), <class 'int'>: (3, 'i', False), <class 'str'>: (8, 'I%ds', False)}
_DICT_VT2TYPE = {2: ('h', 2), 3: ('i', 4), 4: ('f', 4), 5: ('d', 8), 6: ('q', 8), 7: ('d', 8), 8: ('%ds', -1), 10: ('i', 4), 11: ('h', 2), 17: ('B', 1), 18: ('H', 2), 19: ('I', 4), 20: ('q', 8), 21: ('Q', 8)}
_SEC_ONEDAY = 86400
_TIME_DIFFERENCE = 25569.0
_bcap_recv()[source]
_bcap_send(serial, version, funcid, args)[source]
_deserialize(buf)[source]
_deserialize_arg(buf)[source]
_deserialize_args(buf, len_args, first=False)[source]
_recv_with_select(len_recv)[source]
_send_and_recv(funcid, args)[source]
_serialize(serial, version, funcid, args)[source]
_serialize_arg(arg)[source]
_serialize_args(args, first=False)[source]
command_cancel(handle)[source]
command_execute(handle, mode)[source]
command_getattribute(handle)[source]
command_gethelp(handle)[source]
command_getid(handle)[source]
command_getname(handle)[source]
command_getparameters(handle)[source]
command_getresult(handle)[source]
command_getstate(handle)[source]
command_gettag(handle)[source]
command_gettimeout(handle)[source]
command_putid(handle, newval)[source]
command_putparameters(handle, newval)[source]
command_puttag(handle, newval)[source]
command_puttimeout(handle, newval)[source]
command_release(handle)[source]
controller_connect(name, provider, machine, option)[source]
controller_disconnect(handle)[source]
controller_execute(handle, command, param=None)[source]
controller_getattribute(handle)[source]
controller_getcommand(handle, name, option='')[source]
controller_getcommandnames(handle, option='')[source]
controller_getextension(handle, name, option='')[source]
controller_getextensionnames(handle, option='')[source]
controller_getfile(handle, name, option='')[source]
controller_getfilenames(handle, option='')[source]
controller_gethelp(handle)[source]
controller_getid(handle)[source]
controller_getmessage(handle)[source]
controller_getname(handle)[source]
controller_getrobot(handle, name, option='')[source]
controller_getrobotnames(handle, option='')[source]
controller_gettag(handle)[source]
controller_gettask(handle, name, option='')[source]
controller_gettasknames(handle, option='')[source]
controller_getvariable(handle, name, option='')[source]
controller_getvariablenames(handle, option='')[source]
controller_putid(handle, newval)[source]
controller_puttag(handle, newval)[source]
datetime2vntdate()[source]
extension_execute(handle, command, param=None)[source]
extension_getattribute(handle)[source]
extension_gethelp(handle)[source]
extension_getid(handle)[source]
extension_getname(handle)[source]
extension_gettag(handle)[source]
extension_getvariable(handle, name, option='')[source]
extension_getvariablenames(handle, option='')[source]
extension_putid(handle, newval)[source]
extension_puttag(handle, newval)[source]
extension_release(handle)[source]
file_copy(handle, name, option='')[source]
file_delete(handle, option='')[source]
file_execute(handle, command, param=None)[source]
file_getattribute(handle)[source]
file_getdatecreated(handle)[source]
file_getdatelastaccessed(handle)[source]
file_getdatelastmodified(handle)[source]
file_getfile(handle, name, option='')[source]
file_getfilenames(handle, option='')[source]
file_gethelp(handle)[source]
file_getid(handle)[source]
file_getname(handle)[source]
file_getpath(handle)[source]
file_getsize(handle)[source]
file_gettag(handle)[source]
file_gettype(handle)[source]
file_getvalue(handle)[source]
file_getvariable(handle, name, option='')[source]
file_getvariablenames(handle, option='')[source]
file_move(handle, name, option='')[source]
file_putid(handle, newval)[source]
file_puttag(handle, newval)[source]
file_putvalue(handle, newval)[source]
file_release(handle)[source]
file_run(handle, option='')[source]
gettimeout()[source]
message_clear(handle)[source]
message_getdatetime(handle)[source]
message_getdescription(handle)[source]
message_getdestination(handle)[source]
message_getnumber(handle)[source]
message_getserialnumber(handle)[source]
message_getsource(handle)[source]
message_getvalue(handle)[source]
message_release(handle)[source]
message_reply(handle, data)[source]
robot_accelerate(handle, axis, accel, decel)[source]
robot_change(handle, name)[source]
robot_chuck(handle, option='')[source]
robot_drive(handle, axis, mov, option='')[source]
robot_execute(handle, command, param=None)[source]
robot_getattribute(handle)[source]
robot_gethelp(handle)[source]
robot_getid(handle)[source]
robot_getname(handle)[source]
robot_gettag(handle)[source]
robot_getvariable(handle, name, option='')[source]
robot_getvariablenames(handle, option='')[source]
robot_gohome(handle)[source]
robot_halt(handle, option='')[source]
robot_hold(handle, option='')[source]
robot_move(handle, comp, pose, option='')[source]
robot_putid(handle, newval)[source]
robot_puttag(handle, newval)[source]
robot_release(handle)[source]
robot_rotate(handle, rotsuf, deg, pivot, option='')[source]
robot_speed(handle, axis, speed)[source]
robot_unchuck(handle, option='')[source]
robot_unhold(handle, option='')[source]
service_start(option='')[source]
service_stop()[source]
settimeout(timeout)[source]
task_delete(handle, option='')[source]
task_execute(handle, command, param=None)[source]
task_getattribute(handle)[source]
task_getfilename(handle)[source]
task_gethelp(handle)[source]
task_getid(handle)[source]
task_getname(handle)[source]
task_gettag(handle)[source]
task_getvariable(handle, name, option='')[source]
task_getvariablenames(handle, option='')[source]
task_putid(handle, newval)[source]
task_puttag(handle, newval)[source]
task_release(handle)[source]
task_start(handle, mode, option='')[source]
task_stop(handle, mode, option='')[source]
variable_getattribute(handle)[source]
variable_getdatetime(handle)[source]
variable_gethelp(handle)[source]
variable_getid(handle)[source]
variable_getmicrosecond(handle)[source]
variable_getname(handle)[source]
variable_gettag(handle)[source]
variable_getvalue(handle)[source]
variable_putid(handle, newval)[source]
variable_puttag(handle, newval)[source]
variable_putvalue(handle, newval)[source]
variable_release(handle)[source]
vntdate2datetime()[source]

cobotta2.bcapclient.orinexception module

Software License Agreement (MIT License)

@copyright Copyright (c) 2017 DENSO WAVE INCORPORATED

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

class HResult[source]

Bases: object

E_ABORT = -2147467260
E_ACCESSDENIED = -2147024891
E_CANCEL = -2147482621
E_CAOP_NOT_WRITABLE = -2147482620
E_CAOP_SYSTEMNAME_INVALID = -2147482623
E_CAOP_SYSTEMTYPE_INVALID = -2147482622
E_CAO_CMD_EXECUTE = -2147483125
E_CAO_COLLECTION_REGISTERED = -2147483131
E_CAO_COMPUTER_NAME = -2147483134
E_CAO_NOT_WRITABLE = -2147483126
E_CAO_OBJECT_NOTFOUND = -2147483132
E_CAO_PRELOAD = -2147483123
E_CAO_PROV_INVALID = -2147483135
E_CAO_PROV_NO_LICENSE = -2147483124
E_CAO_REMOTE_ENGINE = -2147483128
E_CAO_REMOTE_PROVIDER = -2147483127
E_CAO_SEM_CREATE = -2147483136
E_CAO_THREAD_CREATE = -2147483129
E_CAO_VARIANT_TYPE_NOSUPPORT = -2147483133
E_CRDIMPL = -2147482624
E_FAIL = -2147467259
E_HANDLE = -2147024890
E_INVALIDARG = -2147024809
E_INVALIDPACKET = -2147418112
E_INVALID_CMD_NAME = -2147481340
E_MAX_OBJECT = -2147481339
E_NOTIMPL = -2147467263
E_NOT_CONNECTED = -2147481342
E_NOT_USE = -2147481341
E_NO_LICENSE = -2147481343
E_OUTOFMEMORY = -2147024882
E_POINTER = -2147467261
E_TIMEOUT = -2147481344
E_UNEXPECTED = -2147418113
E_WINDOWS_MASK = -2146959361
E_WINSOCK_MASK = -2137915393
S_EXECUTING = 2304
S_FALSE = 1
S_OK = 0
failed()[source]
succeeded()[source]
exception ORiNException(hr)[source]

Bases: Exception

cobotta2.bcapclient.variant module

Software License Agreement (MIT License)

@copyright Copyright (c) 2017 DENSO WAVE INCORPORATED

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

class VarType[source]

Bases: object

VT_ARRAY = 8192
VT_BLOB = 65
VT_BLOB_OBJECT = 70
VT_BOOL = 11
VT_BSTR = 8
VT_BSTR_BLOB = 4095
VT_BYREF = 16384
VT_CARRAY = 28
VT_CF = 71
VT_CLSID = 72
VT_CY = 6
VT_DATE = 7
VT_DECIMAL = 14
VT_DISPATCH = 9
VT_EMPTY = 0
VT_ERROR = 10
VT_FILETIME = 64
VT_HRESULT = 25
VT_I1 = 16
VT_I2 = 2
VT_I4 = 3
VT_I8 = 20
VT_ILLEGAL = 65535
VT_ILLEGALMASKED = 4095
VT_INT = 22
VT_INT_PTR = 37
VT_LPSTR = 30
VT_LPWSTR = 31
VT_NULL = 1
VT_PTR = 26
VT_R4 = 4
VT_R8 = 5
VT_RECORD = 36
VT_RESERVED = 32768
VT_SAFEARRAY = 27
VT_STORAGE = 67
VT_STORED_OBJECT = 69
VT_STREAM = 66
VT_STREAMED_OBJECT = 68
VT_TYPEMASK = 4095
VT_UI1 = 17
VT_UI2 = 18
VT_UI4 = 19
VT_UI8 = 21
VT_UINT = 23
VT_UINT_PTR = 38
VT_UNKNOWN = 13
VT_USERDEFINED = 29
VT_VARIANT = 12
VT_VECTOR = 4096
VT_VERSIONED_STREAM = 73
VT_VOID = 24