rosserial for Hydro

Dependencies:   MODSERIAL

Fork of rosserial_mbed_lib by nucho

Committer:
nucho
Date:
Fri Aug 19 09:06:30 2011 +0000
Revision:
0:77afd7560544
Child:
1:ff0ec969dad1

        

Who changed what in which revision?

UserRevisionLine numberNew contents of line
nucho 0:77afd7560544 1 /*
nucho 0:77afd7560544 2 * msg_receiver.h
nucho 0:77afd7560544 3 *
nucho 0:77afd7560544 4 * Created on: Aug 5, 2011
nucho 0:77afd7560544 5 * Author: astambler
nucho 0:77afd7560544 6 */
nucho 0:77afd7560544 7
nucho 0:77afd7560544 8 #ifndef MSG_RECEIVER_H_
nucho 0:77afd7560544 9 #define MSG_RECEIVER_H_
nucho 0:77afd7560544 10
nucho 0:77afd7560544 11 namespace ros{
nucho 0:77afd7560544 12
nucho 0:77afd7560544 13 /* Base class for objects recieving messages (Services and Subscribers) */
nucho 0:77afd7560544 14 class MsgReceiver
nucho 0:77afd7560544 15 {
nucho 0:77afd7560544 16 public:
nucho 0:77afd7560544 17 virtual void receive(unsigned char *data)=0;
nucho 0:77afd7560544 18
nucho 0:77afd7560544 19 //Distinguishes between different receiver types
nucho 0:77afd7560544 20 virtual int _getType()=0;
nucho 0:77afd7560544 21 virtual const char * getMsgType()=0;
nucho 0:77afd7560544 22 int id_;
nucho 0:77afd7560544 23 const char * topic_;
nucho 0:77afd7560544 24 };
nucho 0:77afd7560544 25 }
nucho 0:77afd7560544 26
nucho 0:77afd7560544 27 #endif /* MSG_RECEIVER_H_ */