Skip to content

Commit

Permalink
Fix README formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Affonso-Gui committed Apr 26, 2017
1 parent b6ddf73 commit b4421e8
Showing 1 changed file with 28 additions and 37 deletions.
65 changes: 28 additions & 37 deletions jsk_fetch_robot/README.md
Expand Up @@ -66,50 +66,42 @@ fetch-interface function APIs

- get current angle values of the robot model

```
```
(send *fetch* :angle-vector)
```
```

- get current angle values of the real robot

```
```
(send *ri* :state :potentio-vector)
```
```

- update joint angle values of the robot model from the real robot

```
```
(send *fetch* :angle-vector (send *ri* :state :potentio-vector))
```
```

- set angle values to the robot model

```
```
(send *fetch* :angle-vector #f(150 75 80 -10 100 0 95 0 0 0))
```
```

- set "reset pose" to the robot model

```
```
(send *fetch* :reset-pose)
```
```

- send current joint angles of robot model to real robot in 5000 \[ms\] (CAUTION, this will move the real robot)

```
```
(send *ri* :angle-vector (send *fetch* :angle-vector) 5000)
```

- send current head joint angles of robot model to real robot, this command only control joints of head limb. (DO NOT USE THIS COMMAND EXCEPT **HEAD**)

```
(send *fetch :head :neck-y :joint-angle 50)
(send *ri* :angle-vector-raw (send *fetch* :angle-vector) 3000 :head-controller)
(send *ri* :wait-interpolation)
```
```

- get angle value of individual joint
```
```
(send *fetch* :torso :waist-z :joint-angle)
(send *fetch* :rarm :shoulder-y :joint-angle)
(send *fetch* :rarm :shoulder-p :joint-angle)
Expand All @@ -120,43 +112,43 @@ fetch-interface function APIs
(send *fetch* :rarm :wrist-r :joint-angle)
(send *fetch* :head :neck-y :joint-angle)
(send *fetch* :head :neck-p :joint-angle)
```
```

- set angle value of indiviual joint, use \[mm\] for linear joint and \[deg\] for rotational joint

```
```
(send *fetch* :torso :waist-z :joint-angle 150)
(send *fetch* :rarm :shoulder-y :joint-angle 75)
```
```

- control gripper

to grasp object
```
```
(send *ri* :start-grasp)
```
```

to release object
```
```
(send *ri* :stop-grasp)
```
```

- inverse kinematics

including torso movement
```
```
(send *fetch* :inverse-kinematics (make-coords :pos #f(800 0 1200)) :debug-view t)
```
```

using only arm movement
```
```
(send *fetch* :rarm :inverse-kinematics (make-coords :pos #f(800 0 1200)) :degug-view t)
```
```

coordinates can be made with
```
```
(make-coords :pos #f(0 0 0) :rpy (float-vector 0 0 pi))
```
```

- moving the robot

Expand All @@ -170,19 +162,18 @@ fetch-interface function APIs
(send *ri* :move-to (make-coords :pos #f(0 8150 0)) :frame-id "/map") ;; :retry 1 ;;[mm]
```

- use text-to-speech engine to speak text
- speak

```
(send *ri* :speak "hello")
(send *ri* :speak (format nil "hello, ~A + ~A is ~A" 1 1 (+ 1 1)))
```

FAQ
---

- `could not fid package [fetcheus]`

```
```
1.irteusgl$ (load "package://fetcheus/fetch-interface.l") ; load modules
[rospack] Error: package 'fetcheus' not found
;; could not find pacakge [fetcheus]
Expand Down

0 comments on commit b4421e8

Please sign in to comment.