Skip to content

Commit 2a1fe06

Browse files
authored
Update API-Reference.md
1 parent 48ec0bb commit 2a1fe06

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

doc/API-Reference.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,23 @@ return [[255.0, 0.0, 0.0, 77.0, 192.0], [82.0, 0.0, 0.0, 230.0, 223.0], [107.0,
9595
每个元素值范围:0~255
9696
---
9797

98+
### 获取矩阵式压感数据 Topic /cb_left_hand_matrix_touch or /cb_right_hand_matrix_touch 注:只第二代压力传感器
99+
```bash
100+
rostopic echo /cb_left_hand_matrix_touch
101+
data: "{"thumb_matrix": [[0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0], [0,0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0], [0,0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0], [0,0, 0, 0, 0, 0]], "index_matrix": [[0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0]], "middle_matrix": [[0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0]], "ring_matrix": [[0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0]], "little_matrix": [[0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0]]}"
102+
```
103+
**Description**:
104+
获取手指矩阵压感数据 数据格式 std_msgs/String Json
105+
**Parameters**:
106+
- `data`:
107+
```bash
108+
thumb_matrix:大拇指矩阵压力值 0~255
109+
index_matrix:食指矩阵压力值 0~255
110+
middle_matrix:中指矩阵压力值 0~255
111+
ring_matrix:无名指矩阵压力值 0~255
112+
little_matrix:小拇指矩阵压力值 0~255
113+
```
114+
98115
### 获取版本号
99116
```python
100117
def get_version(self)
@@ -188,4 +205,4 @@ def main():
188205
## Contact
189206
- 如果有任何问题或需要进一步支持,请联系 [support@linkerhand.com](mailto:support@linkerhand.com)
190207

191-
---
208+
---

0 commit comments

Comments
 (0)