Skip to content

Commit dbfa163

Browse files
authored
320 增加运动学逆解接口说明
1 parent c8fa7d2 commit dbfa163

File tree

1 file changed

+16
-1
lines changed
  • 10-ApplicationBasePython/10.1_320_PI-ApplicationPython

1 file changed

+16
-1
lines changed

10-ApplicationBasePython/10.1_320_PI-ApplicationPython/2_API.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,6 +342,21 @@ mc.send_angle(1, 40, 20)
342342
- `0` not moving
343343
- `-1` error
344344

345+
#### 3.16 `angles_to_coords(angles)`
346+
347+
- **Function** : Convert angles to coordinates.
348+
- **Parameters:**
349+
- `angles`: `list` List of floating points for all angles.
350+
- **Return value**: `list` List of floating points for all coordinates.
351+
352+
#### 3.17 `solve_inv_kinematics(target_coords, current_angles)`
353+
354+
- **Function** : Convert coordinates to angles.
355+
- **Parameters:**
356+
- `target_coords`: `list` List of floating points for all coordinates.
357+
- `current_angles`: `list` List of floating points for all angles, current angles of the robot
358+
- **Return value**: `list` List of floating points for all angles.
359+
345360
### 4. JOG Mode and Operation
346361

347362
#### 4.1 `jog_angle(joint_id, direction, speed)`
@@ -1284,4 +1299,4 @@ Server file is in the `demo folder`,For details, please check the [Server_320.py
12841299
- **Parameters**
12851300

12861301
- `pin_no` (`int`) pin id.
1287-
- **Return value:** `0` is low level `1` is high level
1302+
- **Return value:** `0` is low level `1` is high level

0 commit comments

Comments
 (0)