This program is porting rosserial_arduino for mbed http://www.ros.org/wiki/rosserial_arduino This program supported the revision of 169 of rosserial.

Dependencies:  

Dependents:   rosserial_mbed robot_S2

Committer:
nucho
Date:
Sat Nov 12 23:54:45 2011 +0000
Revision:
3:1cf99502f396
Parent:
1:ff0ec969dad1
Child:
4:684f39d0c346
This program supported the revision of 167 of rosserial.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
nucho 1:ff0ec969dad1 1 /*
nucho 1:ff0ec969dad1 2 * Software License Agreement (BSD License)
nucho 1:ff0ec969dad1 3 *
nucho 1:ff0ec969dad1 4 * Copyright (c) 2011, Willow Garage, Inc.
nucho 1:ff0ec969dad1 5 * All rights reserved.
nucho 1:ff0ec969dad1 6 *
nucho 1:ff0ec969dad1 7 * Redistribution and use in source and binary forms, with or without
nucho 1:ff0ec969dad1 8 * modification, are permitted provided that the following conditions
nucho 1:ff0ec969dad1 9 * are met:
nucho 0:77afd7560544 10 *
nucho 1:ff0ec969dad1 11 * * Redistributions of source code must retain the above copyright
nucho 1:ff0ec969dad1 12 * notice, this list of conditions and the following disclaimer.
nucho 1:ff0ec969dad1 13 * * Redistributions in binary form must reproduce the above
nucho 1:ff0ec969dad1 14 * copyright notice, this list of conditions and the following
nucho 1:ff0ec969dad1 15 * disclaimer in the documentation and/or other materials provided
nucho 1:ff0ec969dad1 16 * with the distribution.
nucho 1:ff0ec969dad1 17 * * Neither the name of Willow Garage, Inc. nor the names of its
nucho 1:ff0ec969dad1 18 * contributors may be used to endorse or promote prducts derived
nucho 1:ff0ec969dad1 19 * from this software without specific prior written permission.
nucho 1:ff0ec969dad1 20 *
nucho 1:ff0ec969dad1 21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
nucho 1:ff0ec969dad1 22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
nucho 1:ff0ec969dad1 23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
nucho 1:ff0ec969dad1 24 * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
nucho 1:ff0ec969dad1 25 * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
nucho 1:ff0ec969dad1 26 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
nucho 1:ff0ec969dad1 27 * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
nucho 1:ff0ec969dad1 28 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
nucho 1:ff0ec969dad1 29 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
nucho 1:ff0ec969dad1 30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
nucho 1:ff0ec969dad1 31 * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
nucho 1:ff0ec969dad1 32 * POSSIBILITY OF SUCH DAMAGE.
nucho 0:77afd7560544 33 */
nucho 0:77afd7560544 34
nucho 3:1cf99502f396 35 #ifndef _ROS_MSG_H_
nucho 3:1cf99502f396 36 #define _ROS_MSG_H_
nucho 0:77afd7560544 37
nucho 1:ff0ec969dad1 38
nucho 0:77afd7560544 39 namespace ros {
nucho 0:77afd7560544 40
nucho 1:ff0ec969dad1 41 /* Base Message Type */
nucho 1:ff0ec969dad1 42 class Msg
nucho 1:ff0ec969dad1 43 {
nucho 1:ff0ec969dad1 44 public:
nucho 3:1cf99502f396 45 virtual int serialize(unsigned char *outbuffer) const = 0;
nucho 1:ff0ec969dad1 46 virtual int deserialize(unsigned char *data) = 0;
nucho 1:ff0ec969dad1 47 virtual const char * getType() = 0;
nucho 3:1cf99502f396 48 virtual const char * getMD5() = 0;
nucho 1:ff0ec969dad1 49 };
nucho 1:ff0ec969dad1 50
nucho 0:77afd7560544 51 }
nucho 0:77afd7560544 52
nucho 1:ff0ec969dad1 53 #endif