Commit b002fbb
Shota Aoki
速度制御機能とサンプルの追加 (#4)
* for-loopをconst 参照に書き換えて、不要なコピーと値の書き換えを防ぐ
* サーボの速度、電流、電圧、温度をsync_readする機能を実装
* READMEの更新
* S17のread_preset_valuesサンプル追加
* ライブラリ:関数名の誤記修正
* サンプル:ID、ジョイント名でパラメータを読み取るサンプルを追加
* Operating Mode切り替え機能を実装。
goal_velocityの書き込みに対応
* goal_velocityを書き込むサンプルを追加
* start_thread()を実行しなければ、目標速度をセットできない
* 角度リミットに達したらgoal_velocityを0にする。
goal_velocityを0にし忘れても良いように、安全な終了処理を実装
* 速度制御時の角度リミット値にマージンを加算できる
* 速度制御時は、positionのsync_readを必須にする
* connect状態のフラグを追加して、disconnect関数の連続実行を防ぐ
* x7_write_velocityを修正
* s17_write_velocityを追加
* READMEを更新
* READMEを更新
* velocity pi gain設定機能を追加
* s17_write_velocityに速度PIDゲインの設定コードを追加
* READMEにvelocity_pi_gainの使い方を追記
* 目次の更新
* 微修正
* constの付け忘れを修正
* READMEにサーボモータのposition limitを確認すること、という文を追記
* max/min_pos_limit_marginをpos_limit_marginに統合
* forearmをwristに変更
* READMEにライブラリとサンプルの変更点を反映1 parent cae2fbb commit b002fbb
File tree
10 files changed
+782
-29
lines changed- rt_manipulators_lib
- include
- src
- samples/samples01
- config
- src
10 files changed
+782
-29
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
65 | 68 | | |
66 | 69 | | |
67 | 70 | | |
| |||
71 | 74 | | |
72 | 75 | | |
73 | 76 | | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
74 | 81 | | |
75 | 82 | | |
76 | 83 | | |
| |||
82 | 89 | | |
83 | 90 | | |
84 | 91 | | |
| 92 | + | |
| 93 | + | |
85 | 94 | | |
86 | 95 | | |
87 | 96 | | |
88 | 97 | | |
89 | 98 | | |
90 | 99 | | |
| 100 | + | |
| 101 | + | |
91 | 102 | | |
92 | 103 | | |
93 | 104 | | |
| |||
102 | 113 | | |
103 | 114 | | |
104 | 115 | | |
105 | | - | |
106 | 116 | | |
| 117 | + | |
| 118 | + | |
107 | 119 | | |
108 | 120 | | |
109 | 121 | | |
| |||
117 | 129 | | |
118 | 130 | | |
119 | 131 | | |
120 | | - | |
| 132 | + | |
121 | 133 | | |
122 | 134 | | |
123 | 135 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
| 27 | + | |
27 | 28 | | |
28 | 29 | | |
| 30 | + | |
| 31 | + | |
29 | 32 | | |
30 | 33 | | |
31 | 34 | | |
| |||
37 | 40 | | |
38 | 41 | | |
39 | 42 | | |
| 43 | + | |
40 | 44 | | |
| 45 | + | |
41 | 46 | | |
42 | 47 | | |
43 | 48 | | |
44 | 49 | | |
| 50 | + | |
| 51 | + | |
45 | 52 | | |
46 | 53 | | |
47 | 54 | | |
48 | 55 | | |
49 | 56 | | |
50 | 57 | | |
| 58 | + | |
51 | 59 | | |
52 | 60 | | |
53 | 61 | | |
| |||
0 commit comments