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.