1. 程式人生 > >ros之自定義message

ros之自定義message

int ssa dep message num marker ids include int32

ros之自定義message

在aruco_map功能包下自定義message

  • aruco_map/msg/aruco_marker.msg
std_msgs/Header header
bool marker_visibile
int32 num_of_visible_markers
geometry_msgs/Pose global_camera_pose
int32[] marker_ids
geometry_msgs/Pose[] global_marker_poses
  • CMakeLists.txt
find_package(catkin REQUIRED COMPONENTS
             std_msgs
             message_generation)
             
#generate message
add_message_files(FILES aruco_marker.msg)
generate_messages(DEPENDENCIES
                  std_msgs
                  geometry_msgs)
  • 生成頭文件
#include <aruco_map/aruco_marker.h>
  • message類型
aruco_map::aruco_marker

ros之自定義message