9.1.3.3. 執行 pick & place 範例

請打開 terminal 終端視窗,輸入 roscore 指令。

$ roscore

運行 roscore 後,需再執行 OpenManipulator 的控制器。打開另一個終端視窗,輸入以下指令。

$ roslaunch open_manipulator_controller open_manipulator_controller.launch

如果 OpenManipulator 控制器已成功啟動,終端視窗將顯示以下消息。

然後打開另一個終端視窗並輸入以下指令。此指令是用於執行識別 ar marker 的套件。輸入你使用的攝影機類型和 ar marker 的大小。在這個例子中,我們使用Raspberry Pi Camera V2 樹莓派攝影機和 3cm ar marker。

備註:要使用 Raspberry Pi Camera V2 攝影機,請在 Raspberry Pi 中運行 camera node 節點。

打開另一個終端視窗並輸入以下指令。

你可以在終端視窗中看到以下消息。 您可以檢查機器手臂的狀態。

有三個指令選擇。請在終端視窗輸入指令號碼。

  1. Home pose: 回到原位 home pose.

  2. Pick and Place demo. Start: 開始 Pick and Place 展示.

  3. Pick and Place demo. Stop: 停止 Pick and Place 展示.

Last updated

Was this helpful?