Skip to content

Commit 79fc8e4

Browse files
committed
release v3.1.7
1 parent bbacbdb commit 79fc8e4

File tree

6 files changed

+24
-15
lines changed

6 files changed

+24
-15
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# ChangeLog for pymycobot
22

3+
## v3.1.7 (2023-8-8)
4+
5+
- release v3.1.6
6+
- Fix myArm interface error
7+
8+
## v3.1.6 (2023-6-19)
9+
10+
- release v3.1.6
11+
- Update synchronization control interface
12+
313
## v3.1.5 (2023-07-06)
414

515
- release v3.1.5

docs/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,8 @@ We support Python2, Python3.5 or later.
111111
- [get\_solution\_angles](#get_solution_angles)
112112
- [set\_solution\_angles](#set_solution_angles)
113113
- [joint\_brake](#joint_brake)
114-
- [get\_transpoendr\_mode](#get_transpoendr_mode)
115-
- [set\_transpoendr\_mode](#set_transpoendr_mode)
114+
- [get\_transponder\_mode](#get_transponder_mode)
115+
- [set\_transponder\_mode](#set_transponder_mode)
116116
- [Raspberry pi -- GPIO](#raspberry-pi----gpio)
117117
- [gpio\_init](#gpio_init)
118118
- [gpio\_output](#gpio_output)
@@ -1253,9 +1253,9 @@ Set the terminal atom io status
12531253

12541254
- `joint_id`: 1 - 7.
12551255

1256-
### get_transpoendr_mode
1256+
### get_transponder_mode
12571257

1258-
- **Prototype**: `get_transpoendr_mode()`
1258+
- **Prototype**: `get_transponder_mode()`
12591259

12601260
- **Description**: Obtain the configuration information of serial transmission mode.(`This interface is only applicable to MyArm`)
12611261

@@ -1264,9 +1264,9 @@ Set the terminal atom io status
12641264
- `1`: Turn on transparent transmission, verify all data
12651265
- `2`: Turn on transparent transmission, only verify communication forwarding mode configuration information (default is 0)
12661266

1267-
### set_transpoendr_mode
1267+
### set_transponder_mode
12681268

1269-
- **Prototype**: `set_transpoendr_mode(mode)`
1269+
- **Prototype**: `set_transponder_mode(mode)`
12701270

12711271
- **Description**: Set serial port transmission mode.(`This interface is only applicable to MyArm`)
12721272

pymycobot/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
from pymycobot.mybuddyemoticon import MyBuddyEmoticon
4747
__all__.append("MyBuddyEmoticon")
4848

49-
__version__ = "3.1.7b2"
49+
__version__ = "3.1.7"
5050
__author__ = "Elephantrobotics"
5151
__email__ = "[email protected]"
5252
__git_url__ = "https://github.com/elephantrobotics/pymycobot"

pymycobot/generate.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@ def set_speed(self, speed):
478478
"""Set speed value
479479
480480
Args:
481-
speed (int) - 0 ~ 100
481+
speed (int): 0 ~ 100
482482
"""
483483
# self.calibration_parameters(speed=speed)
484484
return self._mesg(ProtocolCode.SET_SPEED, speed)
@@ -490,6 +490,7 @@ def get_feed_override(self):
490490
)
491491
"""
492492
def get_acceleration(self):
493+
"""get acceleration"""
493494
return self._process_single(
494495
self._mesg(ProtocolCode.GET_ACCELERATION, has_reply=True)
495496
)

pymycobot/myarm.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ def send_radians(self, radians, speed):
156156
"""Send the radians of all joints to robot arm
157157
158158
Args:
159-
radians: a list of radian values( List[float]), length 6
159+
radians: a list of radian values( List[float]), length 7
160160
speed: (int )0 ~ 100
161161
"""
162162
degrees = [self._angle2int(radian * (180 / math.pi))
@@ -180,7 +180,7 @@ def sync_send_angles(self, degrees, speed, timeout=7):
180180
time.sleep(0.1)
181181
return self
182182

183-
def sync_send_coords(self, coords, speed, mode, timeout=7):
183+
def sync_send_coords(self, coords, speed, mode=0, timeout=7):
184184
"""Send the coord in synchronous state and return when the target point is reached
185185
186186
Args:
@@ -280,12 +280,10 @@ def set_color(self, r, g, b):
280280
return self._mesg(ProtocolCode.SET_COLOR_MYARM, r, g, b)
281281

282282
def is_in_position(self, data, id=0):
283-
"""Judge whether in the position. (mypalletizer 340 does not have this interface)
283+
"""Judge whether in the position.
284284
285285
Args:
286286
data: A data list, angles or coords.
287-
for mycobot: len 6.
288-
for mypalletizer: len 4
289287
id: 1 - coords, 0 - angles
290288
291289
Return:

pymycobot/mycobot.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,13 +184,13 @@ def sync_send_angles(self, degrees, speed, timeout=7):
184184
time.sleep(0.1)
185185
return self
186186

187-
def sync_send_coords(self, coords, speed, mode, timeout=7):
187+
def sync_send_coords(self, coords, speed, mode=0, timeout=7):
188188
"""Send the coord in synchronous state and return when the target point is reached
189189
190190
Args:
191191
coords: a list of coord values(List[float])
192192
speed: (int) 0 ~ 100
193-
mode: (int): 0 - angular, 1 - linear
193+
mode: (int): 0 - angular(default), 1 - linear
194194
timeout: default 7s.
195195
"""
196196
t = time.time()

0 commit comments

Comments
 (0)