创建一个Publisher,发布的topic为"mytopic", msg类型为std_msgs/Int32以下创建方法正确的是:? ros::Publisher;pub("mytopic",;10);ros::Publisher;;pub("mytopic",;std_msgs::Int32,10);ros::NodeHandle;nh; ros::Publisher;pub;=;nh.advertise("mytopic",;std_msgs::Int32,10);ros::NodeHandle;nh...
创建一个Publisher,发布的topic为"mytopic", msg类型为std_msgs/Int32 以下创建方法正确的是: A.ros::NodeHandle nh; ros::Publisher pub = nh.advertise("mytopic", std_msgs::Int32,10); B.ros::NodeHandle nh; ros::Publisher pub = nh.advertise("mytopic", 10); C.ros::...
geometry_msgs/Pose;originnav_msgs/OccupancyGrid消息std_msgs/Header;header nav_msgs/MapMetaData;info int8[];datanav_msgs/MapMetaData消息time;map_load_time float32;resolution uint32;width uint32;height geometry_msgs/Pose;origin相关知识点: 试题...
创建一个Publisher,发布的topic为"mytopic", msg类型为std_msgs/Int32以下创建方法正确的是:? ros::Publisher;pub("mytopic",;10);ros::NodeHandle;nh; ros::Publisher;pub;=;nh.advertise("mytopic",;std_msgs::Int32,10);ros::NodeHandle;nh;...
创建一个Publisher,发布的topic为"mytopic", msg类型为std_msgs/Int32以下创建方法正确的是:A. ros::NodeHandle nh;ros::Publisher pub = nh.advertise ("mytopic", 10);B. ros::Publisher pub("mytopic", 10);C. ros::Publisher pub("mytopic", std_msgs::Int32,10);D. ros::NodeHandle nh;ros...
创建一个Publisher,发布的topic为"mytopic",msg类型为std_msgs/Int32,以下创建方法正确的是( )。 A.ros::NodeHandle nh;B.ros::Publisher pub = nh.advertise("mytopic", std_msgs::Int32,10);C.B.ros::NodeHandle nh;D.ros::Publisher pub = nh.advertise("mytopic", 10);E.C.ros::Publisher ...
创建一个Publisher,发布的topic为"mytopic", msg类型为std_msgs/Int32 以下创建方法正确的是: A.ros::NodeHandle nh; ros::Publisher pub = nh.advertise<std_msgs::int32> ("mytopic", 10); B.ros::Publisher <std_msgs::int32> pub("mytopic", 10); C.ros::Publisher pub("mytopic", std_msgs...