在ros中设计自定义的消息msg在ros下创建功能包:catkin_create_pkg headers roscpp rospy std_msgs,进入src,编辑代码和roslaunch文件,代码包roslaunch headers headers.launch