---
# System prepended metadata

title: Untitled

---

## ROS

- Step 1:
    - 安裝Ububtu 18.04
- Step 2:
- ```bash
    sudo apt update && sudo apt upgrade
    ```
- Step 3:
    - install requirement
     ```bash 
        sudo apt install curl
    ```
    - install ros melodic
        -  [Ubuntu install of ROS Melodic](http://wiki.ros.org/melodic/Installation/Ubuntu)
-  Step 4:
    -   install colcon
        -   [colcon](https://colcon.readthedocs.io/en/released/user/installation.html)
-  Step 5:
    -  創建workspace
    ```bash
        mkdir ros_ws && cd ros_ws
    ```
    -  創建src
    ```bash
        mkdir src && cd src
    ```
    -  將車體驅動包安裝進src
        -  [create_autonomy](https://github.com/AutonomyLab/create_robot)
        ```bash
        git clone https://github.com/AutonomyLab/create_robot
        ```
    - 回到workspace
        ```bash
        cd ..
        ```
    - 使用colcon 編譯
        ```bash
        colcon build
        ```
    - 處理錯誤
- Step 6:
    - 增加環境變數
        ```bash
        source ~/ros_ws/install/local_setup.bash
        source ~/ros_ws/install/setup.bash
        ```
        
        
        
