Skip to content

Commit

Permalink
the documentation is updated with addition of the new function move_a…
Browse files Browse the repository at this point in the history
…nd_rotate.
  • Loading branch information
Andrew Lui committed Jul 5, 2024
1 parent 7aa3fcb commit 0123d78
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions docs/source/API_SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ The `wait` parameter is another common feature that specifies the call is asynch
| move_displacement | The dx, dy, and dz | cartesian path |
| move_to_position | The target x, y, and z, the reference frame, and path planning | |
| rotate_to_orientation | The target roll, pitch, and yaw, the reference frame, and path planning | |
| move_and_rotate | The target x, y, z, roll, pitch, and yaw, the reference frame, and path planning | |
| move_to_pose | Pose, PoseStamped, a 6-list (xyzrpy) or a 7-list (xyzqqqq) | |

The following functions accepts multiple positions or poses in one move command. The path is always cartesian.
Expand Down
6 changes: 4 additions & 2 deletions docs/source/TUTORIAL_PART1.md
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,6 @@ arm_commander.move_to_position(x = 0.4, y = 0.2, wait=True)
arm_commander.reset_state()
```


### Move using a displacement

The function `move_displacement()` commands the robot arm to move based on a displacement from the current position. The following source code is from `simple_move_4.py`. The end-effector will move 10 cm ten times.
Expand All @@ -197,6 +196,8 @@ The default values of the three component parameters are the current values.

### Move to Both Position and Orientation

There are two functions for moving to a both specified position and orientation.

The function `move_pose()` commands the end-effector to move to a target pose, which can be of type `Pose` or `PoseStamped`.
```python
pose = Pose()
Expand Down Expand Up @@ -225,9 +226,10 @@ xyzrpy = [0.4, 0.0, 0.4, 3.14, 0.0, 0.6]
arm_commander.move_to_pose(xyzrpy, wait=True)
arm_commander.reset_state()
```

![Animation of the Movement](../assets/ArmCommander-SimpleMove5.gif)

However, the function `move_pose()` accepts only fully specified pose. On the other hand, the function `move_and_rotate()` supports partially specified xyzrpy, and the unspecified components are defaulted to the current values.

### Cartesian Movement

The function `move_position()` supports both cartesian path planning (with collision avoidance) and algorithmic path planning (based on a path planner).
Expand Down

0 comments on commit 0123d78

Please sign in to comment.