Skip to content

Commit 20c4f12

Browse files
committed
[feat] add api get_iden_status
1 parent 79312fa commit 20c4f12

File tree

4 files changed

+26
-3
lines changed

4 files changed

+26
-3
lines changed

doc/api/xarm_api.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
xArm-Python-SDK API Documentation (V1.13.26): class XArmAPI in module xarm.wrapper.xarm_api
1+
xArm-Python-SDK API Documentation (V1.13.28): class XArmAPI in module xarm.wrapper.xarm_api
22

33
## class __XArmAPI__
44
****************************************
@@ -1200,6 +1200,17 @@ xArm-Python-SDK API Documentation (V1.13.26): class XArmAPI in module xarm.wrapp
12001200
>     code: See the [API Code Documentation](./xarm_api_code.md#api-code) for details.
12011201
12021202

1203+
#### def __get_iden_status__(self):
1204+
1205+
> Get iden status
1206+
> Note:
1207+
>     Only available if firmware_version >= 2.3.0
1208+
>
1209+
> :return: tuple((code, status)), only when code is 0, the returned result is correct.
1210+
>     code: See the [API Code Documentation](./xarm_api_code.md#api-code) for details.
1211+
>     status: 1 means in identifying, 0 means not in identifying
1212+
1213+
12031214
#### def __get_initial_point__(self):
12041215

12051216
> Get the initial point from studio

xarm/core/wrapper/uxbus_cmd.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1392,7 +1392,7 @@ def get_common_info(self, param_type):
13921392
data = [0] * 2
13931393
data[0] = ret[0]
13941394
if ret[0] != XCONF.UxbusState.ERR_NOTTCP:
1395-
if param_type == 1:
1395+
if param_type == 1 or param_type == 2:
13961396
data[1] = ret[1]
13971397
elif param_type == 50:
13981398
data[1] = convert.bytes_to_fp32(ret[1:])

xarm/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '1.13.27'
1+
__version__ = '1.13.28'

xarm/wrapper/xarm_api.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4057,6 +4057,18 @@ def get_poe_status(self):
40574057
status: 1 means poe is valid, 0 means poe is invalid
40584058
"""
40594059
return self._arm.get_common_info(1)
4060+
4061+
def get_iden_status(self):
4062+
"""
4063+
Get iden status
4064+
Note:
4065+
Only available if firmware_version >= 2.3.0
4066+
4067+
:return: tuple((code, status)), only when code is 0, the returned result is correct.
4068+
code: See the [API Code Documentation](./xarm_api_code.md#api-code) for details.
4069+
status: 1 means in identifying, 0 means not in identifying
4070+
"""
4071+
return self._arm.get_common_info(2)
40604072

40614073
def get_c31_error_info(self):
40624074
"""

0 commit comments

Comments
 (0)