1 需要订阅乌龟的位姿信息,转换成相对于窗体的坐标关系,并发布 #include"ros/ros.h" #include"turtlesim/Pose.h" // 发布动态坐标变换的头文件 #include"tf2_ros/transform_broadcaster.h" // 坐标系间转