> For the complete documentation index, see [llms.txt](https://ritka.gitbook.io/translate-book/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ritka.gitbook.io/translate-book/untitled-1.md).

# 5. УСТАНОВКА КОДА ROS НА ПРИМЕРЕ

Перед установкой самого кода ROS By Example это сэкономит некоторое время, если мы установим большинство дополнительных пакетов ROS, которые нам понадобятся позже. (Также будут предоставлены инструкции по установке отдельных пакетов по мере необходимости в книге.) Просто скопируйте и вставьте следующую команду (без знака $) в окно терминала, чтобы установить необходимые нам пакеты Debian. Символ  в конце каждой строки делает весь блок похожим на одну строку для Linux при выполнении копирования и вставки:

```
$ sudo apt-get install ros-indigo-turtlebot-bringup \ ros-indigo-turtlebot-create-desktop ros-indigo-openni-* \ ros-indigo-openni2-* ros-indigo-freenect-* ros-indigo-usb-cam \ ros-indigo-laser-* ros-indigo-hokuyo-node \ ros-indigo-audio-common gstreamer0.10-pocketsphinx \ ros-indigo-pocketsphinx ros-indigo-slam-gmapping \ ros-indigo-joystick-drivers python-rosinstall \ ros-indigo-orocos-kdl ros-indigo-python-orocos-kdl \ python-setuptools ros-indigo-dynamixel-motor-* \
libopencv-dev python-opencv ros-indigo-vision-opencv \ ros-indigo-depthimage-to-laserscan ros-indigo-arbotix-* \ ros-indigo-turtlebot-teleop ros-indigo-move-base \ ros-indigo-map-server ros-indigo-fake-localization \ ros-indigo-amcl git subversion mercurial
```

Если вы читаете печатную версию книги, копирование и вставка, вероятно, не вариант. Вместо этого вы можете использовать следующие команды для загрузки небольшого сценария оболочки с именем rbx1-prereq.sh, который запустит команду apt-get, описанную выше:

```
$ cd ~
$ wget https://raw.githubusercontent.com/pirobot/rbx1/indigo-devel/\
rbx1-prereq.sh
$ sh rbx1-prereq.sh
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://ritka.gitbook.io/translate-book/untitled-1.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
