#navpoint.msg geometry_msgs/PoseStamped target_pose uint8 floor uint8 type target_pose 的类型为geometry_msgs/PoseStamped # A Pose with reference coordinate frame and timestamp Header header Pose pose Record PoseStamped := { _header : Header.Header; _pose : Pose.Pose}. 简单构造 demo1 #构造header target_pose.header.seq = 0; target_pose.header.stamp =ros::Time::now();//如果有问题就使用Time(0)获取时间戳,确保类型一致 target_pose.header.frame_id = "map"; #构造pose target