1. package.xml 파일에 다음 내용 추가
<build_depend>[custom_msg_package]</build_depend>
<exec_depend>[custom_msg_package]</exec_depend>
2. CMakeLists.xtx 파일 수정
find_package(catkin REQUIRED COMPONENTS
# ( 중략 )
[custom_msg_package]
)
* Reference
https://answers.ros.org/question/213446/subscribing-to-custom-message-type/
subscribing to custom message type - ROS Answers: Open Source Q&A Forum
subscribing to custom message type edit I have created a custom message type. I am able to successfully publish it with the topic name "topic". int8 seq_id std_msgs/Header timestamp int8 frame_id float64 myheight float64 mywidth int16 step_value sensor_msg
answers.ros.org
'Libraries & Packages > ROS' 카테고리의 다른 글
cmake error "Project 'cv_bridge' specifies '/usr/include/opencv' as an include dir, which is not found." Solution (0) | 2023.05.26 |
---|---|
ROS2 install (0) | 2023.05.09 |
undefined reference to `image_transport::ImageTransport::ImageTransport(ros::NodeHandle const&)' 해결 (0) | 2023.04.06 |
static transform publisher 사용 (0) | 2023.02.24 |
[ROS] Compressed Image를 Raw Image로 Republish (0) | 2023.02.23 |