trick/trick_sims/ROS/models/ros_comm/ros_publish.hh
Alex Lin 4c471eb32d Introduce Trick ROS publish/subscribe examples.
Introducing a pubish and subscribe example sim.  The publisher includes
a ROS msg file that is processed by ROS into a header file.

refs #190
2016-02-26 09:39:42 -06:00

25 lines
388 B
C++

/*
PURPOSE: (To be)
LIBRARY_DEPENDENCIES: (ros_publish.cpp)
*/
#ifndef ROS_PUBLISH_HH
#define ROS_PUBLISH_HH
#include "ros/ros.h"
class RosPublish {
public:
ros::NodeHandle n ; // ** ros nodehandle
ros::Publisher msg_pub ; // ** ros publisher
int count ;
RosPublish() ;
int init() ;
int publish() ;
} ;
#endif