@@ -14,7 +14,9 @@ robot: CRANE+ V2
14
14
* 設置済みCRANE+ V2本体
15
15
* [ 製品マニュアル] ( https://rt-net.jp/products/cranev2/ ) を読んで設置済みの状態を前提としています
16
16
* ノートパソコン等のPC
17
- * OS(** Ubuntu Desktop 20.04** )がインストール済みであることを前提としています
17
+ * OS(** Ubuntu Desktop** )がインストール済みであることを前提としています
18
+ * ` ROS 2 Humble ` を使用する場合(推奨): ** Ubuntu Desktop 22.04**
19
+ * ` ROS 2 Foxy ` を使用する場合(非推奨): ** Ubuntu Desktop 20.04**
18
20
* ROS 2がインストール済みであることを前提としています
19
21
* [ ROS 2のインストール手順] ( ./install.md ) を参照してください
20
22
* ROS 2用のパッケージがインストール済みであることを前提としています
@@ -36,16 +38,130 @@ sudo chmod 666 /dev/ttyUSB0
36
38
37
39
## ROS 2サンプルの実行 {: examples}
38
40
41
+ ### gripper_control
42
+
39
43
=== "ROS 2"
40
44
41
- 次のコマンドでmove_group(` crane_plus_moveit_config ` )とcontroller(` crane_plus_control ` )を起動します。
45
+ 詳しい実行手順は[サンプル集のgripper_control](https://github.com/rt-net/crane_plus/tree/master/crane_plus_examples#gripper_control){target=_blank rel=noopener}
46
+ を参照してください。
42
47
43
- ``` sh
44
- ros2 launch crane_plus_examples demo.launch.py port_name:=/dev/ttyUSB0
45
- ```
48
+ 次のコマンドでmove_group(`crane_plus_moveit_config`)とcontroller(`crane_plus_control`)を起動します。
49
+
50
+ ```sh
51
+ ros2 launch crane_plus_examples demo.launch.py port_name:=/dev/ttyUSB0
52
+ ```
53
+
54
+ 別のターミナルで次のコマンドを実行すると、CRANE+ V2のグリッパが開閉します。
55
+
56
+ ```sh
57
+ ros2 launch crane_plus_examples example.launch.py example:='gripper_control'
58
+ ```
46
59
47
- 別のターミナルで次のコマンドを実行すると、CRANE+ V2のグリッパが開閉します。
60
+ <img src="https://rt-net.github.io/images/crane-plus/gripper_control.gif" width="500">
48
61
49
- ``` sh
50
- ros2 launch crane_plus_examples example.launch.py example:=' gripper_control'
51
- ```
62
+ ### pose_groupstate
63
+
64
+ === "ROS 2"
65
+
66
+ 詳しい実行手順は[サンプル集のpose_groupstate](https://github.com/rt-net/crane_plus/blob/master/crane_plus_examples/README.md#pose_groupstate){target=_blank rel=noopener}
67
+ を参照してください。
68
+
69
+ 次のコマンドでmove_group(`crane_plus_moveit_config`)とcontroller(`crane_plus_control`)を起動します。
70
+
71
+ ```sh
72
+ ros2 launch crane_plus_examples demo.launch.py port_name:=/dev/ttyUSB0
73
+ ```
74
+
75
+ 別のターミナルで次のコマンドを実行すると、CRANE+ V2が`home`と`vertical`の姿勢へ移行します。
76
+
77
+ ```sh
78
+ ros2 launch crane_plus_examples example.launch.py example:='pose_groupstate'
79
+ ```
80
+
81
+ <img src="https://rt-net.github.io/images/crane-plus/pose_groupstate.gif" width="500">
82
+
83
+ ### joint_values
84
+
85
+ === "ROS 2"
86
+
87
+ 詳しい実行手順は[サンプル集のjoint_values](https://github.com/rt-net/crane_plus/blob/master/crane_plus_examples/README.md#joint_values){target=_blank rel=noopener}
88
+ を参照してください。
89
+
90
+ 次のコマンドでmove_group(`crane_plus_moveit_config`)とcontroller(`crane_plus_control`)を起動します。
91
+
92
+ ```sh
93
+ ros2 launch crane_plus_examples demo.launch.py port_name:=/dev/ttyUSB0
94
+ ```
95
+
96
+ 別のターミナルで次のコマンドを実行すると、CRANE+ V2の各関節が一つずつ変化します。
97
+
98
+ ```sh
99
+ ros2 launch crane_plus_examples example.launch.py example:='joint_values'
100
+ ```
101
+
102
+ <img src="https://rt-net.github.io/images/crane-plus/joint_values.gif" width="500">
103
+
104
+ ### pick_and_place
105
+
106
+ === "ROS 2"
107
+
108
+ 詳しい実行手順は[サンプル集のpick_and_place](https://github.com/rt-net/crane_plus/blob/master/crane_plus_examples/README.md#pick_and_place){target=_blank rel=noopener}
109
+ を参照してください。
110
+
111
+ 次のコマンドでmove_group(`crane_plus_moveit_config`)とcontroller(`crane_plus_control`)を起動します。
112
+
113
+ ```sh
114
+ ros2 launch crane_plus_examples demo.launch.py port_name:=/dev/ttyUSB0
115
+ ```
116
+
117
+ 別のターミナルで次のコマンドを実行すると、CRANE+ V2がピックアンドプレース動作を行います。
118
+
119
+ ```sh
120
+ ros2 launch crane_plus_examples example.launch.py example:='pick_and_place'
121
+ ```
122
+
123
+ <img src="https://rt-net.github.io/images/crane-plus/pick_and_place.gif" width="500">
124
+
125
+ ## ROS 2カメラサンプルの実行 {: camera_examples}
126
+
127
+ ### aruco_detection
128
+
129
+ === "ROS 2"
130
+
131
+ 詳しい実行手順は[サンプル集のaruco_detection](https://github.com/rt-net/crane_plus/blob/master/crane_plus_examples/README.md#aruco_detection){target=_blank rel=noopener}
132
+ を参照してください。
133
+
134
+ 次のコマンドでmove_group(`crane_plus_moveit_config`)とcontroller(`crane_plus_control`)、カメラノードを起動します。
135
+
136
+ ```sh
137
+ ros2 launch crane_plus_examples demo.launch.py port_name:=/dev/ttyUSB0 use_camera:=true video_device:=/dev/video0
138
+ ```
139
+
140
+ 別のターミナルで次のコマンドを実行すると、カメラ画像から物体に取り付けたマーカを検出し、CRANE+ V2がピックアンドプレースを行います。
141
+
142
+ ```sh
143
+ ros2 launch crane_plus_examples example.launch.py example:='aruco_detection'
144
+ ```
145
+
146
+ <img src="https://rt-net.github.io/images/crane-plus/aruco_detection.gif" width="500">
147
+
148
+ ### color_detection
149
+
150
+ === "ROS 2"
151
+
152
+ 詳しい実行手順は[サンプル集のcolor_detection](https://github.com/rt-net/crane_plus/blob/master/crane_plus_examples/README.md#color_detection){target=_blank rel=noopener}
153
+ を参照してください。
154
+
155
+ 次のコマンドでmove_group(`crane_plus_moveit_config`)とcontroller(`crane_plus_control`)、カメラノードを起動します。
156
+
157
+ ```sh
158
+ ros2 launch crane_plus_examples demo.launch.py port_name:=/dev/ttyUSB0 use_camera:=true video_device:=/dev/video0
159
+ ```
160
+
161
+ 別のターミナルで次のコマンドを実行すると、カメラ画像から特定の色の物体を検出し、CRANE+ V2がピックアンドプレースを行います。
162
+
163
+ ```sh
164
+ ros2 launch crane_plus_examples example.launch.py example:='color_detection'
165
+ ```
166
+
167
+ <img src="https://rt-net.github.io/images/crane-plus/color_detection.gif" width="500">
0 commit comments