ros::init(argc, argv, "TestNodeName"); ROS_INFO_STREAM(ros::this_node::getName()); // 打印出 "TestNodeName"