ROS Custom message 추가 방법에 대해서 포스팅하겠습니다.
파일 구조는 다음과 같습니다.
[파일]
CMakeList.txt
package.xml
[폴더]
include
msg
src
여기서 저는 node 2개를 만들었고, 한 노드는 publish를 하고 나머지 한 노드는 subscriber를 하는 노드입니다.
우선 package.xml 파일에서
<build_depend>message_generation</build_depend>
<exec_depend>message_runtime</exec_depend>
이 두 개를 추가해줘야 합니다.
CMakeList.txt 에는
다음과 같이 수정해줍니다.
'Debugging' 카테고리의 다른 글
output exceeds the size limit. open the full output data in a text editor python 오류 해결 방법 (0) | 2025.01.19 |
---|---|
리눅스, 파이썬, 파이토치, ROS 가상환경 구축하기 (0) | 2025.01.19 |
서버에 미니콘다 설치 및 환경 구축하기 (0) | 2025.01.19 |
Gazebo - human following issue (0) | 2022.10.04 |
Eclipse C/C++ 환경에 Eigen Library 추가 방법 (0) | 2022.01.03 |