pymycobot 3.5.0.dev1__tar.gz → 3.5.0.dev3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {pymycobot-3.5.0.dev1/pymycobot.egg-info → pymycobot-3.5.0.dev3}/PKG-INFO +1 -1
- {pymycobot-3.5.0.dev1 → pymycobot-3.5.0.dev3}/pymycobot/__init__.py +1 -1
- {pymycobot-3.5.0.dev1 → pymycobot-3.5.0.dev3}/pymycobot/error.py +8 -8
- {pymycobot-3.5.0.dev1 → pymycobot-3.5.0.dev3}/pymycobot/mercury_api.py +37 -12
- {pymycobot-3.5.0.dev1 → pymycobot-3.5.0.dev3/pymycobot.egg-info}/PKG-INFO +1 -1
- {pymycobot-3.5.0.dev1 → pymycobot-3.5.0.dev3}/pymycobot.egg-info/SOURCES.txt +0 -1
- pymycobot-3.5.0.dev1/pymycobot/robot_limit.json +0 -0
- {pymycobot-3.5.0.dev1 → pymycobot-3.5.0.dev3}/LICENSE +0 -0
- {pymycobot-3.5.0.dev1 → pymycobot-3.5.0.dev3}/MANIFEST.in +0 -0
- {pymycobot-3.5.0.dev1 → pymycobot-3.5.0.dev3}/README.md +0 -0
- {pymycobot-3.5.0.dev1 → pymycobot-3.5.0.dev3}/pymycobot/Interface.py +0 -0
- {pymycobot-3.5.0.dev1 → pymycobot-3.5.0.dev3}/pymycobot/bluet.py +0 -0
- {pymycobot-3.5.0.dev1 → pymycobot-3.5.0.dev3}/pymycobot/common.py +0 -0
- {pymycobot-3.5.0.dev1 → pymycobot-3.5.0.dev3}/pymycobot/elephantrobot.py +0 -0
- {pymycobot-3.5.0.dev1 → pymycobot-3.5.0.dev3}/pymycobot/generate.py +0 -0
- {pymycobot-3.5.0.dev1 → pymycobot-3.5.0.dev3}/pymycobot/genre.py +0 -0
- {pymycobot-3.5.0.dev1 → pymycobot-3.5.0.dev3}/pymycobot/log.py +0 -0
- {pymycobot-3.5.0.dev1 → pymycobot-3.5.0.dev3}/pymycobot/mecharm.py +0 -0
- {pymycobot-3.5.0.dev1 → pymycobot-3.5.0.dev3}/pymycobot/mecharmsocket.py +0 -0
- {pymycobot-3.5.0.dev1 → pymycobot-3.5.0.dev3}/pymycobot/mercury.py +0 -0
- {pymycobot-3.5.0.dev1 → pymycobot-3.5.0.dev3}/pymycobot/mercurychassis.py +0 -0
- {pymycobot-3.5.0.dev1 → pymycobot-3.5.0.dev3}/pymycobot/mercurysocket.py +0 -0
- {pymycobot-3.5.0.dev1 → pymycobot-3.5.0.dev3}/pymycobot/myagv.py +0 -0
- {pymycobot-3.5.0.dev1 → pymycobot-3.5.0.dev3}/pymycobot/myarm.py +0 -0
- {pymycobot-3.5.0.dev1 → pymycobot-3.5.0.dev3}/pymycobot/myarm_api.py +0 -0
- {pymycobot-3.5.0.dev1 → pymycobot-3.5.0.dev3}/pymycobot/myarmc.py +0 -0
- {pymycobot-3.5.0.dev1 → pymycobot-3.5.0.dev3}/pymycobot/myarmm.py +0 -0
- {pymycobot-3.5.0.dev1 → pymycobot-3.5.0.dev3}/pymycobot/myarmsocket.py +0 -0
- {pymycobot-3.5.0.dev1 → pymycobot-3.5.0.dev3}/pymycobot/mybuddy.py +0 -0
- {pymycobot-3.5.0.dev1 → pymycobot-3.5.0.dev3}/pymycobot/mybuddybluetooth.py +0 -0
- {pymycobot-3.5.0.dev1 → pymycobot-3.5.0.dev3}/pymycobot/mybuddyemoticon.py +0 -0
- {pymycobot-3.5.0.dev1 → pymycobot-3.5.0.dev3}/pymycobot/mybuddysocket.py +0 -0
- {pymycobot-3.5.0.dev1 → pymycobot-3.5.0.dev3}/pymycobot/mycobot.py +0 -0
- {pymycobot-3.5.0.dev1 → pymycobot-3.5.0.dev3}/pymycobot/mycobotpro630.py +0 -0
- {pymycobot-3.5.0.dev1 → pymycobot-3.5.0.dev3}/pymycobot/mycobotsocket.py +0 -0
- {pymycobot-3.5.0.dev1 → pymycobot-3.5.0.dev3}/pymycobot/mypalletizer.py +0 -0
- {pymycobot-3.5.0.dev1 → pymycobot-3.5.0.dev3}/pymycobot/mypalletizersocket.py +0 -0
- {pymycobot-3.5.0.dev1 → pymycobot-3.5.0.dev3}/pymycobot/progripper.py +0 -0
- {pymycobot-3.5.0.dev1 → pymycobot-3.5.0.dev3}/pymycobot/public.py +0 -0
- {pymycobot-3.5.0.dev1 → pymycobot-3.5.0.dev3}/pymycobot/ultraArm.py +0 -0
- {pymycobot-3.5.0.dev1 → pymycobot-3.5.0.dev3}/pymycobot/utils.py +0 -0
- {pymycobot-3.5.0.dev1 → pymycobot-3.5.0.dev3}/pymycobot.egg-info/dependency_links.txt +0 -0
- {pymycobot-3.5.0.dev1 → pymycobot-3.5.0.dev3}/pymycobot.egg-info/requires.txt +0 -0
- {pymycobot-3.5.0.dev1 → pymycobot-3.5.0.dev3}/pymycobot.egg-info/top_level.txt +0 -0
- {pymycobot-3.5.0.dev1 → pymycobot-3.5.0.dev3}/requirements.txt +0 -0
- {pymycobot-3.5.0.dev1 → pymycobot-3.5.0.dev3}/setup.cfg +0 -0
- {pymycobot-3.5.0.dev1 → pymycobot-3.5.0.dev3}/setup.py +0 -0
- {pymycobot-3.5.0.dev1 → pymycobot-3.5.0.dev3}/tests/test_api.py +0 -0
- {pymycobot-3.5.0.dev1 → pymycobot-3.5.0.dev3}/tests/test_generator.py +0 -0
- {pymycobot-3.5.0.dev1 → pymycobot-3.5.0.dev3}/tests/test_socket.py +0 -0
- {pymycobot-3.5.0.dev1 → pymycobot-3.5.0.dev3}/tests/test_utils.py +0 -0
|
@@ -61,7 +61,7 @@ if sys.platform == "linux":
|
|
|
61
61
|
from pymycobot.mybuddyemoticon import MyBuddyEmoticon
|
|
62
62
|
__all__.append("MyBuddyEmoticon")
|
|
63
63
|
|
|
64
|
-
__version__ = "3.5.
|
|
64
|
+
__version__ = "3.5.0dev3"
|
|
65
65
|
__author__ = "Elephantrobotics"
|
|
66
66
|
__email__ = "weiquan.xu@elephantrobotics.com"
|
|
67
67
|
__git_url__ = "https://github.com/elephantrobotics/pymycobot"
|
|
@@ -201,17 +201,17 @@ def calibration_parameters(**kwargs):
|
|
|
201
201
|
robot_limit = {
|
|
202
202
|
"Mercury":{
|
|
203
203
|
"id":[1,2,3,4,5,6,11,12,13],
|
|
204
|
-
"angles_min":[-
|
|
205
|
-
"angles_max":[
|
|
206
|
-
"coords_min":[-
|
|
207
|
-
"coords_max":[
|
|
204
|
+
"angles_min":[-165, -55, -180, -165, -20, -180, -60, -140, -120],
|
|
205
|
+
"angles_max":[165, 95, 5, 165, 273, 180, 0, 190, 120],
|
|
206
|
+
"coords_min":[-441.37, -441.37, -206.52, -180, -180, -180],
|
|
207
|
+
"coords_max":[441.37, 441.37, 628.02, 180, 180, 180]
|
|
208
208
|
},
|
|
209
209
|
"MercurySocket":{
|
|
210
210
|
"id":[1,2,3,4,5,6,11,12,13],
|
|
211
|
-
"angles_min":[-
|
|
212
|
-
"angles_max":[
|
|
213
|
-
"coords_min":[-
|
|
214
|
-
"coords_max":[
|
|
211
|
+
"angles_min":[-165, -55, -180, -165, -20, -180, -60, -140, -120],
|
|
212
|
+
"angles_max":[165, 95, 5, 165, 273, 180, 0, 190, 120],
|
|
213
|
+
"coords_min":[-441.37, -441.37, -206.52, -180, -180, -180],
|
|
214
|
+
"coords_max":[441.37, 441.37, 628.02, 180, 180, 180]
|
|
215
215
|
},
|
|
216
216
|
"MyCobot":{
|
|
217
217
|
"id":[1,2,3,4,5,6, 7],
|
|
@@ -39,17 +39,41 @@ class MercuryCommandGenerator(CommandGenerator):
|
|
|
39
39
|
with self.lock:
|
|
40
40
|
self.write_command.append(genre)
|
|
41
41
|
self._write(self._flatten(real_command))
|
|
42
|
-
if genre in [
|
|
42
|
+
if genre in [
|
|
43
|
+
ProtocolCode.SEND_ANGLE,
|
|
44
|
+
ProtocolCode.SEND_ANGLES,
|
|
45
|
+
ProtocolCode.SEND_COORD,
|
|
46
|
+
ProtocolCode.SEND_COORDS,
|
|
47
|
+
ProtocolCode.JOG_ANGLE,
|
|
48
|
+
ProtocolCode.JOG_COORD,
|
|
49
|
+
ProtocolCode.JOG_INCREMENT,
|
|
50
|
+
ProtocolCode.JOG_INCREMENT_COORD,
|
|
51
|
+
ProtocolCode.COBOTX_SET_SOLUTION_ANGLES,
|
|
52
|
+
ProtocolCode.MERCURY_SET_BASE_COORDS,
|
|
53
|
+
ProtocolCode.MERCURY_JOG_BASE_COORD,
|
|
54
|
+
ProtocolCode.MERCURY_SET_BASE_COORD]:
|
|
43
55
|
has_reply = True
|
|
44
56
|
if has_reply:
|
|
45
57
|
t = time.time()
|
|
46
|
-
wait_time = 0.1
|
|
58
|
+
wait_time = 0.1
|
|
47
59
|
if genre == ProtocolCode.POWER_ON:
|
|
48
60
|
wait_time = 8
|
|
49
61
|
elif genre in [ProtocolCode.POWER_OFF, ProtocolCode.RELEASE_ALL_SERVOS, ProtocolCode.FOCUS_ALL_SERVOS,
|
|
50
|
-
|
|
62
|
+
ProtocolCode.RELEASE_SERVO, ProtocolCode.FOCUS_SERVO, ProtocolCode.STOP]:
|
|
51
63
|
wait_time = 3
|
|
52
|
-
elif genre in [
|
|
64
|
+
elif genre in [
|
|
65
|
+
ProtocolCode.SEND_ANGLE,
|
|
66
|
+
ProtocolCode.SEND_ANGLES,
|
|
67
|
+
ProtocolCode.SEND_COORD,
|
|
68
|
+
ProtocolCode.SEND_COORDS,
|
|
69
|
+
ProtocolCode.JOG_ANGLE,
|
|
70
|
+
ProtocolCode.JOG_COORD,
|
|
71
|
+
ProtocolCode.JOG_INCREMENT,
|
|
72
|
+
ProtocolCode.JOG_INCREMENT_COORD,
|
|
73
|
+
ProtocolCode.COBOTX_SET_SOLUTION_ANGLES,
|
|
74
|
+
ProtocolCode.MERCURY_SET_BASE_COORDS,
|
|
75
|
+
ProtocolCode.MERCURY_JOG_BASE_COORD,
|
|
76
|
+
ProtocolCode.MERCURY_SET_BASE_COORD]:
|
|
53
77
|
wait_time = 300
|
|
54
78
|
is_in_position = True
|
|
55
79
|
need_break = False
|
|
@@ -846,7 +870,7 @@ class MercuryCommandGenerator(CommandGenerator):
|
|
|
846
870
|
"""
|
|
847
871
|
return self._mesg(ProtocolCode.MERCURY_GET_POS_OVER_SHOOT, has_reply=True)
|
|
848
872
|
|
|
849
|
-
def stop(self, deceleration=
|
|
873
|
+
def stop(self, deceleration=0):
|
|
850
874
|
"""Robot stops moving
|
|
851
875
|
|
|
852
876
|
Args:
|
|
@@ -855,12 +879,12 @@ class MercuryCommandGenerator(CommandGenerator):
|
|
|
855
879
|
Returns:
|
|
856
880
|
int: 1 - Stop completion
|
|
857
881
|
"""
|
|
858
|
-
if deceleration:
|
|
859
|
-
return self._mesg(ProtocolCode.STOP, has_reply=True)
|
|
860
|
-
else:
|
|
882
|
+
if deceleration == 1:
|
|
861
883
|
return self._mesg(ProtocolCode.STOP, 1, has_reply=True)
|
|
884
|
+
else:
|
|
885
|
+
return self._mesg(ProtocolCode.STOP, has_reply=True)
|
|
862
886
|
|
|
863
|
-
def pause(self, deceleration=
|
|
887
|
+
def pause(self, deceleration=0):
|
|
864
888
|
"""Robot pauses movement
|
|
865
889
|
|
|
866
890
|
Args:
|
|
@@ -869,10 +893,11 @@ class MercuryCommandGenerator(CommandGenerator):
|
|
|
869
893
|
Returns:
|
|
870
894
|
int: 1 - pause completion
|
|
871
895
|
"""
|
|
872
|
-
if deceleration:
|
|
873
|
-
return self._mesg(ProtocolCode.PAUSE, has_reply=True)
|
|
874
|
-
else:
|
|
896
|
+
if deceleration == 1:
|
|
875
897
|
return self._mesg(ProtocolCode.PAUSE, 1, has_reply=True)
|
|
898
|
+
else:
|
|
899
|
+
return self._mesg(ProtocolCode.PAUSE, has_reply=True)
|
|
900
|
+
|
|
876
901
|
|
|
877
902
|
def get_modified_version(self):
|
|
878
903
|
return self._mesg(ProtocolCode.ROBOT_VERSION, has_reply=True)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|