# YOLO 사용하기

아래의 msgs 관련 패키지만 내 PC에 설치하면 됩니다.

* 지원하는 ROS 버전이 달라도 (ex> kinetic <-> melodic) 메시지 타입만 동일하다면 통신이 가능합니다.

![](/files/-MUVy2bJ9YZJ2yiPu7-a)

* roscore를 끄고 진행합니다.

먼저 darknet\_ros를 내 PC에 받고

![](/files/-MUVyCU7FFjPjTkCFu1i)

그리고 darknet\_ros\_msgs만 남기고 지워주세요.

![](/files/-MUVyGKyrqQYrikuS45S)

그리고 워크스페이스로 이동한 후에 해당 패키지만 빌드해줍니다.

![](/files/-MUVyKfDpJO-4j1FeoGo)

그리고 source \~/.bashrc 로 적용시키고,

![](/files/-MUVyObKaKNVkNPmEQLM)

다시 이렇게 실행\~

![](/files/-MUVyTQc1jbaBq6-apJ3)

이 상태에서 rostopic list 로 darknet\_ros가 잘 동작하고 있는지 확인하고,

![](/files/-MUVyXXZ6UmWzOwjP6a5)

&#x20;rostopic echo 명령으로 원하는 토픽의 값을 봅니다.

![rostopic echo  /darknet\_ros/bounding\_boxes](/files/-MUVy_xm1oLZ9wXSdmXv)

![rostopic echo /darknet\_ros/found\_object](/files/-MUVye5c-7oGfO2nupTp)


---

# Agent Instructions: 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:

```
GET https://omorobot.gitbook.io/manual/product/omo-r1mini/ros/ros1-melodic/yolo2.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
