mirror of
https://github.com/nasa/trick.git
synced 2024-12-30 09:58:53 +00:00
4c471eb32d
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
23 lines
364 B
C++
23 lines
364 B
C++
|
|
/*
|
|
PURPOSE: (To be)
|
|
LIBRARY_DEPENDENCIES: (ros_subscribe.cpp)
|
|
*/
|
|
|
|
#ifndef ROS_SUBSCRIBE_HH
|
|
#define ROS_SUBSCRIBE_HH
|
|
|
|
#include "ros/ros.h"
|
|
|
|
class RosSubscribe {
|
|
public:
|
|
ros::NodeHandle n ; // ** ros nodehandle
|
|
ros::Subscriber sub ; // ** ros subscriber
|
|
|
|
RosSubscribe() ;
|
|
int init() ;
|
|
int process() ;
|
|
} ;
|
|
|
|
#endif
|