摘要: ##发布消息 #! /usr/bin/env python """ 发布方: 循环发送消息 """ import rospy from demo02_talker_listener.msg import Person if __name__ == "__main__": #1.初始化 ROS 节点 阅读全文
posted @ 2022-04-07 23:28 shamozhicheng 阅读(18) 评论(0) 推荐(0) 编辑
摘要: #http://www.autolabor.com.cn/book/ROSTutorials/ #include "ros/ros.h" #include "plumbing_pubsub/Person.h" void doPerson(const plumbing_pubsub::Person:: 阅读全文
posted @ 2022-04-07 23:25 shamozhicheng 阅读(7) 评论(0) 推荐(0) 编辑
摘要: #include "ros/ros.h" #include "plumbing_pubsub/Person.h" int main(int argc, char *argv[]) { setlocale(LC_ALL,""); ROS_INFO("这是消息发布方"); ros::init( argc 阅读全文
posted @ 2022-04-07 23:23 shamozhicheng 阅读(79) 评论(0) 推荐(0) 编辑