ROS Publishers and Substribers C - olinrobotics/avatar GitHub Wiki
At the top of the file, write:
#include <ros/ros.h>
#include <std_msgs/String.h>
Under that, write:
using namespace ros;
For more on namespaces go here
This initializes the node. argc and argv allow ROS to communicate through the command line.
`ros::init(argc, argv, "talker");
ros::NodeHandle <handle_name>
(ConstPtr&)[http://answers.ros.org/question/212857/what-is-constptr/]
- [usb_cam](ADD LINK)
- (Writing a Simple Publisher and Subscriber (C++))[http://wiki.ros.org/ROS/Tutorials/WritingPublisherSubscriber%28c%2B%2B%29]