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