This program is porting rosserial_arduino for mbed http://www.ros.org/wiki/rosserial_arduino This program supported the revision of 169 of rosserial.
Dependents: rosserial_mbed robot_S2
ros/msg.h@0:77afd7560544, 2011-08-19 (annotated)
- Committer:
- nucho
- Date:
- Fri Aug 19 09:06:30 2011 +0000
- Revision:
- 0:77afd7560544
- Child:
- 1:ff0ec969dad1
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
nucho | 0:77afd7560544 | 1 | /* |
nucho | 0:77afd7560544 | 2 | * Msg.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 ROS_MSG_H_ |
nucho | 0:77afd7560544 | 9 | #define ROS_MSG_H_ |
nucho | 0:77afd7560544 | 10 | |
nucho | 0:77afd7560544 | 11 | namespace ros { |
nucho | 0:77afd7560544 | 12 | /* Base Message Type */ |
nucho | 0:77afd7560544 | 13 | class Msg { |
nucho | 0:77afd7560544 | 14 | public: |
nucho | 0:77afd7560544 | 15 | virtual int serialize(unsigned char *outbuffer) = 0; |
nucho | 0:77afd7560544 | 16 | virtual int deserialize(unsigned char *data) = 0; |
nucho | 0:77afd7560544 | 17 | virtual const char * getType() = 0; |
nucho | 0:77afd7560544 | 18 | |
nucho | 0:77afd7560544 | 19 | }; |
nucho | 0:77afd7560544 | 20 | } |
nucho | 0:77afd7560544 | 21 | |
nucho | 0:77afd7560544 | 22 | #endif /* MSG_H_ */ |