http://wiki.ros.org/ROSNodeTutorialC%2B%2B that 's the shit from the ros wiki
let's check out thi shit!Writing a Publisher/Subscriber with Dynamic Reconfigure and Parameter Server (C++)
This tutorial will show you how to combine several beginner level tutorials to create publisher and subscriber nodes that are more fully-featured than the previously created nodes. This page will describe how to create a publisher node that:
-
Initializes several variables from either a launch file or using the command line by making use of the parameter server.// wtf are that variables
Makes several variables available to be modified during run-time using a dynamic reconfigure server.
Publishes data on a topic using custom messages.
A subscriber node will be created to work with the publisher node that
- Sets up a subscriber to listen for the custom message on the specified topic and prints out the message data.
The variables that are used, and the callback functions used by the publisher and subscriber, will be part of a class that is created for this purpose as described in this tutorial.
该教程结合ROS的基础教程,展示如何创建功能更全的发布者和订阅者节点。发布者节点从启动文件或命令行利用参数服务器初始化变量,并通过动态重配置服务器在运行时修改变量。它使用自定义消息在主题上发布数据。订阅者节点则设置监听特定主题的自定义消息并打印数据。这些功能通过类的形式实现。
970

被折叠的 条评论
为什么被折叠?



