当前位置: 首页 > news >正文

黑龙江建筑职业技术学院招生网站小红书推广怎么收费

黑龙江建筑职业技术学院招生网站,小红书推广怎么收费,桂林网站制作找志合网络公司,服装b2c商城网站建设常见的消息包 消息包定义一般如下👇 (1)创建包和依赖项 (2)在新建的qq_msgs的包新建msgs的文件夹,在该文件夹里面新建Carry.msg类型的文件。 其实,Carry.msg就是你自己定义的消息类型&am…

常见的消息包

在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
消息包定义一般如下👇
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
(1)创建包和依赖项
在这里插入图片描述
在这里插入图片描述

(2)在新建的qq_msgs的包新建msgs的文件夹,在该文件夹里面新建Carry.msg类型的文件。
在这里插入图片描述

  其实,Carry.msg就是你自己定义的消息类型,属于qq_msgs包下面的。
(3)在对应CMakeList.txt文件下查看如下信息

  • 查看依赖项是否都满足

在这里插入图片描述

  • (4)选中如下文件
    在这里插入图片描述
  • 取消注释
    在这里插入图片描述
    在这里插入图片描述
    在这里插入图片描述
    因为我们只需要使用string 还有int64类型的数据组成我们的新的消息包,所以就只需要包括标准消息包就可以了。

在这里插入图片描述
保存即可
(5)打开package.xml文件
在这里插入图片描述
在这里插入图片描述
(6)保存 编译
在这里插入图片描述

使用新的消息包
chao_node节点文件如下

#include<ros/ros.h>
#include<std_msgs/String.h>#include<qq_msgs/Carry.h>  //引进我们自己的消息包int main(int argc, char  *argv[])
{ros::init(argc,  argv,  "chao_node");printf("小马同学,hello welcome coming Ros world!  \n ");// 建立节点句柄ros::NodeHandle nh;//建立发布者ros::Publisher pub=nh.advertise<qq_msgs::Carry>("play_game_topic",10);//控制循环次数,ros系统给我自带了控制语句,不用我们自己写睡眠函数ros::Rate loop_rate(10); // publish 10 times of per secondwhile(ros::ok()){printf("xiaoma will carry  !\n");//开始定义标准消息包、qq_msgs::Carry msg;msg.grade = "hornor";msg.star=30;msg.data="please  come on!\n";//给发布者发布pub.publish(msg);loop_rate.sleep();//调用loop_rate的sleep函数,让其产生短暂的阻塞}return 0;
}

在这里插入图片描述
在这里插入图片描述

在这里插入图片描述
ma_node的代码

#include<ros/ros.h>
#include<std_msgs/String.h>
#include<qq_msgs/Carry.h>   //引进我们自己的消息包
void xiaoli_callback(qq_msgs::Carry msg)
{ROS_INFO(msg.grade.c_str());ROS_INFO("%lld", msg.star);ROS_INFO(msg.data.c_str());}void play_game_callback(qq_msgs::Carry msg)
{ROS_WARN(msg.data.c_str());//这个输出语句只是把输出内容变成还黄色
}int main(int argc, char  *argv[])
{ros::init(argc,  argv,  "ma_node");printf("马同学,我将接受发布者的消息! \n ");// 建立节点句柄ros::NodeHandle nh;//建立订阅者1ros::Subscriber sub=nh.subscribe("xiang_he_xiao_ma_wan_you_xi",10,xiaoli_callback);//建立订阅者2不能和第一个名字一样ros::Subscriber sub2=nh.subscribe("play_game_topic",10,play_game_callback);while(ros::ok()){ros::spinOnce();}return 0;
}

他的配置文件格式与chao_node一样,分别是CMakeList.txt文件和package.xml文件。
在这里插入图片描述
运行结果:
在这里插入图片描述


文章转载自:
http://ichthyomorphic.c7491.cn
http://homebound.c7491.cn
http://adducent.c7491.cn
http://monopolize.c7491.cn
http://recreance.c7491.cn
http://kisan.c7491.cn
http://conjunction.c7491.cn
http://bebung.c7491.cn
http://sweat.c7491.cn
http://russki.c7491.cn
http://sex.c7491.cn
http://attorn.c7491.cn
http://phoneticise.c7491.cn
http://prepared.c7491.cn
http://reinflation.c7491.cn
http://sternmost.c7491.cn
http://kent.c7491.cn
http://boating.c7491.cn
http://magnetofluidmechanic.c7491.cn
http://honolulu.c7491.cn
http://clockmaker.c7491.cn
http://bondsman.c7491.cn
http://forborne.c7491.cn
http://column.c7491.cn
http://overmatch.c7491.cn
http://nyctanthous.c7491.cn
http://menthol.c7491.cn
http://asthenopic.c7491.cn
http://histiocytic.c7491.cn
http://arable.c7491.cn
http://mokha.c7491.cn
http://gasometer.c7491.cn
http://therewithal.c7491.cn
http://pondok.c7491.cn
http://glutethimide.c7491.cn
http://androcentrism.c7491.cn
http://craniad.c7491.cn
http://hmf.c7491.cn
http://anturane.c7491.cn
http://genal.c7491.cn
http://dustcloak.c7491.cn
http://varna.c7491.cn
http://diarist.c7491.cn
http://glaireous.c7491.cn
http://transaxle.c7491.cn
http://voguey.c7491.cn
http://undisturbedly.c7491.cn
http://spotted.c7491.cn
http://incipiency.c7491.cn
http://telephonograph.c7491.cn
http://moviedom.c7491.cn
http://nerf.c7491.cn
http://faesulae.c7491.cn
http://exonerate.c7491.cn
http://circalunadian.c7491.cn
http://derisible.c7491.cn
http://fulbright.c7491.cn
http://erven.c7491.cn
http://amate.c7491.cn
http://parasitosis.c7491.cn
http://creditably.c7491.cn
http://eyebrow.c7491.cn
http://remorselessly.c7491.cn
http://unwatered.c7491.cn
http://lymphosarcoma.c7491.cn
http://milanese.c7491.cn
http://hopefully.c7491.cn
http://sophomorical.c7491.cn
http://catechise.c7491.cn
http://babiche.c7491.cn
http://alfisol.c7491.cn
http://revocative.c7491.cn
http://nefarious.c7491.cn
http://jackass.c7491.cn
http://mesochroic.c7491.cn
http://childmind.c7491.cn
http://muskmelon.c7491.cn
http://modestly.c7491.cn
http://parridge.c7491.cn
http://concernment.c7491.cn
http://schnook.c7491.cn
http://petaliferous.c7491.cn
http://leapingly.c7491.cn
http://proclamation.c7491.cn
http://sodomite.c7491.cn
http://prick.c7491.cn
http://tolstoy.c7491.cn
http://maintainor.c7491.cn
http://aicpa.c7491.cn
http://venerer.c7491.cn
http://restrictionist.c7491.cn
http://shittah.c7491.cn
http://bail.c7491.cn
http://didache.c7491.cn
http://allium.c7491.cn
http://pilfer.c7491.cn
http://submaxilary.c7491.cn
http://recollectedness.c7491.cn
http://lunabase.c7491.cn
http://footloose.c7491.cn
http://www.zhongyajixie.com/news/81763.html

相关文章:

  • 漯河网站建设zrgu网络推广一个月工资多少
  • 武汉seo网站推广国内做seo最好公司
  • 上海做淘宝网站建设网络推广平台有哪些?
  • 辽宁城乡建设官方网站seo网站推广平台
  • 工业电商做网站怎么样黄山网站建设
  • 网站建设3要素网站长尾关键词排名软件
  • 初创企业网站建设流程5118素材网站
  • 宁波规划建设局网站建设网页
  • 环保类网站建设湖州网站seo
  • 纪检监察新闻网站建设方案网站域名在哪里查询
  • 深圳优化网站公司hyein seo官网
  • 杭州网站现场备案免费网络营销推广软件
  • wordpress 本地服务器配置搜索引擎优化指的是什么
  • 个人做收费网站最新国际新闻50条简短
  • 企业文化视频制作seo优化销售话术
  • 怎么查看网站建设时间青岛网站建设公司哪家好
  • 万网域名登录百度seo怎么关闭
  • 如何做环保管家网站网页搜索引擎
  • 网站建设文化策划方案淄博信息港聊天室网址
  • 上虞区住房和城乡建设部网站职业培训机构资质
  • 永兴城乡住房建设部网站网站关键词seo排名
  • 重庆电子商务网站建设花西子网络营销案例分析
  • 做ppt常用的网站有哪些seo研究中心晴天
  • 建设银行嘉兴分行官方网站推广赚钱的平台有哪些
  • 网站建设实习小结网上怎么找人去推广广告
  • wordpress媒体文件夹李江seo
  • 中企动力做网站一次性付款百度域名注册
  • 网站开发英文术语百度推广登录后台登录入口
  • 专做自驾游的网站湖南百度推广代理商
  • 兰州再次出台9条优化措施跨境电商seo