注意:1.节点名字不能重复
创建功能包
1. 在catkin_ws src中打开终端
2. catkin_create_pkg learning_topic roscpp rospy std_msgs geometry_msgs turtlesim
编程
C++
添加cpp文件—touch velocity_publisher.cpp
配置发布者代码编译规则
复制到leaning_topic CMakeLists.txt——Bulid,Install之间
编译
编程
python