mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
43 lines
1.6 KiB
Markdown
43 lines
1.6 KiB
Markdown
# 라즈베리파이 ROS 설치
|
|
|
|
Pixhawk 보조 컴퓨터 라즈베리파이에 ROS-indigo를 설치 방법을 설명합니다.
|
|
|
|
## 준비 사항
|
|
|
|
- 모니터, 키보드 또는 구성된 SSH 연결가능한 라즈베리파이
|
|
- 이 가이드는 라즈베리파이에 Raspbian "JESSIE"가 설치되어 있다고 가정합니다. If not: [install it](https://www.raspberrypi.org/downloads/raspbian/) or [upgrade](https://raspberrypi.stackexchange.com/questions/27858/upgrade-to-raspbian-jessie) your Raspbian Wheezy to Jessie.
|
|
|
|
## 설치
|
|
|
|
Follow [this guide](https://wiki.ros.org/ROSberryPi/Installing%20ROS%20Indigo%20on%20Raspberry%20Pi) for the actual installation of ROS Indigo. 참고: "ROS-Comm" 변형 버전을 설치하십시오. 데스크탑 변형은 너무 무겁습니다.
|
|
|
|
### 패키지 설치 중 오류
|
|
|
|
If you want to download packages (e.g. `sudo apt-get install ros-indigo-ros-tutorials`), you might get an error saying: "unable to locate package ros-indigo-ros-tutorials".
|
|
|
|
그런 오류가 발생하면, catkin 작업 공간(예: ~/ros_catkin_ws)으로 이동하여 패키지 이름을 변경합니다.
|
|
|
|
```sh
|
|
$ cd ~/ros_catkin_ws
|
|
|
|
$ rosinstall_generator ros_tutorials --rosdistro indigo --deps --wet-only --exclude roslisp --tar > indigo-custom_ros.rosinstall
|
|
```
|
|
|
|
다음으로 wstool로 작업 공간을 업데이트 합니다.
|
|
|
|
```sh
|
|
$ wstool merge -t src indigo-custom_ros.rosinstall
|
|
|
|
$ wstool update -t src
|
|
```
|
|
|
|
다음으로(여전히 작업 공간 폴더에 있음) 파일을 소싱하고 빌드합니다.
|
|
|
|
```sh
|
|
$ source /opt/ros/indigo/setup.bash
|
|
|
|
$ source devel/setup.bash
|
|
|
|
$ catkin_make
|
|
```
|