64
社区成员
发帖
与我相关
我的任务
分享
find_package(catkin REQUIRED COMPONENTS roscpp rospy std_msgs message_generation )
include_directories( include ${catkin_INCLUDE_DIRS} )
target_link_libraries(RosTest ${catkin_LIBRARIES})
#include "ros/ros.h" #include "std_msgs/String.h" //普通文本类型的消息
有报错的话参考:Unable to find either executable ‘empy‘ or Python module ‘em‘