sub.cpp
Go to the documentation of this file.
00001 
00023 #include <iostream>
00024 #include "opensplice_dds_comm/check_status.h"
00025 #include "opensplice_dds_comm/subscriber.h"
00026 
00027 using namespace DDS;
00028 
00029 void callBack(const opensplice_dds_comm::MSFPPacket& packet)
00030 {
00031     std::cout<<packet.packet_source<<": "<<packet.packet_version<<", "<<packet.packet_type<<", "<<packet.packet_data<<", "<<packet.package_check_sum<<std::endl;
00032 }
00033 
00034 int main()
00035 {
00036     opensplice_dds_comm::Subscriber subscriber("micros_swarm_framework_topic");
00037     subscriber.subscribe(callBack);
00038     
00039     while(1)
00040     {
00041         sleep(1);
00042     }
00043     
00044     return 0;
00045 }


opensplice_dds_comm
Author(s):
autogenerated on Sat May 27 2017 02:42:59