sample_output.cpp
Go to the documentation of this file.
00001 #include "ros/ros.h"
00002 #include "openreroc_motion_sensor.h"
00003 #include <stdio.h>
00004 
00005 void chatterCallback(const openreroc_motion_sensor::openreroc_motion_sensor msg)
00006 {
00007     printf("%d\n",msg.sensor_data);
00008 }
00009 
00010 int main(int argc, char  **argv)
00011 {
00012         ros::init(argc, argv, "sample_output");
00013         ros::NodeHandle n;
00014         ros::Subscriber sub = n.subscribe("openreroc_motion_sensor", 1000, chatterCallback);
00015         ros::spin();
00016 
00017         return 0;
00018 }


openreroc_motion_sensor
Author(s): Kazushi Yamashina
autogenerated on Thu Jun 6 2019 20:29:37