> For the complete documentation index, see [llms.txt](https://idminer.gitbook.io/robotis/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://idminer.gitbook.io/robotis/part-2/7.-ros-cao-zuo/untitled.md).

# 7.1. GUI 圖形介面

http\://emanual.robotis.com/docs/en/platform/openmanipulator\_x/ros\_operation/

{% hint style="info" %}
備註：&#x20;

* 以下說明已在 **Ubuntu 16.04** 和 **ROS Kinetic Kame** 上進行了測試。
* 本節指令應該要在安裝 ROS 套件的 PC 上運行。請確認是在安裝 ROS 套件的 PC 運行以下指令。&#x20;
* 在運行以下指令之前，請確保已經先運行 [**OpenMANIPULATOR-X controller**](http://emanual.robotis.com/docs/en/platform/openmanipulator_x/ros_controller_package/#launch-controller) 控制器指令。
  {% endhint %}

你可以使用 GUI 圖形程序來操作 OpenMANIPULATOR-X 手臂。啟動open\_manipulator\_control\_gui 節點。該程序會顯示機器手臂狀態，並允許用戶控制OpenMANIPULATOR-X。

```
  $ roslaunch open_manipulator_control_gui open_manipulator_control_gui.launch
```

要控制 OpenMANIPULATOR-X，首先點擊 **Timer Start** 按鈕。

<div align="left"><img src="https://3058168660-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LkXc5k_SFaP9gK2gsU8%2F-Lm9CqExvbn7ZD7SdzX_%2F-Lm9FOIsl62oGViGtSF9%2FOpenManipulator_GUI.png?alt=media&amp;token=07c2ef6c-e368-47f1-b9fa-72720a362b56" alt=""></div>

檢查 OpenMANIPULATOR-X 手臂的狀態（關節狀態 states，運動學方位 pose）。

<div align="left"><img src="https://3058168660-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LkXc5k_SFaP9gK2gsU8%2F-Lm9CqExvbn7ZD7SdzX_%2F-Lm9FnDwgyKhG6NVuhUl%2FOpenManipulator_GUI2.png?alt=media&amp;token=1275bb27-3e51-452c-a579-37f2a1e32e9a" alt=""></div>

要在 [**joint space**](http://emanual.robotis.com/docs/en/popup/open_manipulator_coordinates/) 關節空間中操作 OpenMANIPULATOR-X。輸入軌跡的關節角度和總時間。然後點擊 **“Send”** 按鈕。

<div align="left"><img src="https://3058168660-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LkXc5k_SFaP9gK2gsU8%2F-Lm9CqExvbn7ZD7SdzX_%2F-Lm9GGK3M97SYjKSDXR-%2FOpenManipulator_GUI3.png?alt=media&amp;token=16796899-65dd-484b-b241-b622805821af" alt=""></div>

要在 [**task space 任務空間**](http://emanual.robotis.com/docs/en/popup/open_manipulator_coordinates/)中操作 OpenMANIPULATOR-X。在[**任務空間**](http://emanual.robotis.com/docs/en/popup/open_manipulator_coordinates/)中輸入OpenMANIPULATOR-X 終端工具的運動學方位 pose 以及軌跡的總時間。然後點擊 **“Send”** 按鈕。

<div align="left"><img src="https://3058168660-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LkXc5k_SFaP9gK2gsU8%2F-Lm9CqExvbn7ZD7SdzX_%2F-Lm9GvGZRHF4l00LRGJZ%2FOpenManipulator_GUI4.png?alt=media&amp;token=45c25ad8-0244-44dc-b01b-dab6e07e63f5" alt=""></div>

要使用 OpenMANIPULATOR-X 創建繪圖軌跡。首先，選擇繪圖軌跡的類型（直線 line，圓 circle，菱形 rhombus，心形 heart）。並根據繪圖軌跡的類型和繪圖軌跡的總時間來輸入參數。然後點擊 **“Send”** 按鈕。

<div align="left"><img src="https://3058168660-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LkXc5k_SFaP9gK2gsU8%2F-Lm9CqExvbn7ZD7SdzX_%2F-Lm9HQrOW8-gBbVrcA3V%2FOpenManipulator_GUI5.png?alt=media&amp;token=27cf48e6-6cca-4185-9a16-ddaf7627afc7" alt=""></div>
