capstone_finish

Dependencies:   BufferedSerial motor_sn7544

Committer:
Jeonghoon
Date:
Tue Aug 13 05:53:22 2019 +0000
Revision:
3:2a3664dc6634
with ROS;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Jeonghoon 3:2a3664dc6634 1 /*
Jeonghoon 3:2a3664dc6634 2 * Copyright (C) 2009, Willow Garage, Inc.
Jeonghoon 3:2a3664dc6634 3 *
Jeonghoon 3:2a3664dc6634 4 * Redistribution and use in source and binary forms, with or without
Jeonghoon 3:2a3664dc6634 5 * modification, are permitted provided that the following conditions are met:
Jeonghoon 3:2a3664dc6634 6 * * Redistributions of source code must retain the above copyright notice,
Jeonghoon 3:2a3664dc6634 7 * this list of conditions and the following disclaimer.
Jeonghoon 3:2a3664dc6634 8 * * Redistributions in binary form must reproduce the above copyright
Jeonghoon 3:2a3664dc6634 9 * notice, this list of conditions and the following disclaimer in the
Jeonghoon 3:2a3664dc6634 10 * documentation and/or other materials provided with the distribution.
Jeonghoon 3:2a3664dc6634 11 * * Neither the names of Willow Garage, Inc. nor the names of its
Jeonghoon 3:2a3664dc6634 12 * contributors may be used to endorse or promote products derived from
Jeonghoon 3:2a3664dc6634 13 * this software without specific prior written permission.
Jeonghoon 3:2a3664dc6634 14 *
Jeonghoon 3:2a3664dc6634 15 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
Jeonghoon 3:2a3664dc6634 16 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
Jeonghoon 3:2a3664dc6634 17 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
Jeonghoon 3:2a3664dc6634 18 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
Jeonghoon 3:2a3664dc6634 19 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
Jeonghoon 3:2a3664dc6634 20 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
Jeonghoon 3:2a3664dc6634 21 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
Jeonghoon 3:2a3664dc6634 22 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
Jeonghoon 3:2a3664dc6634 23 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
Jeonghoon 3:2a3664dc6634 24 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
Jeonghoon 3:2a3664dc6634 25 * POSSIBILITY OF SUCH DAMAGE.
Jeonghoon 3:2a3664dc6634 26 */
Jeonghoon 3:2a3664dc6634 27
Jeonghoon 3:2a3664dc6634 28 #ifndef ROSLIB_BUILTIN_MESSAGE_TRAITS_H
Jeonghoon 3:2a3664dc6634 29 #define ROSLIB_BUILTIN_MESSAGE_TRAITS_H
Jeonghoon 3:2a3664dc6634 30
Jeonghoon 3:2a3664dc6634 31 #include "message_traits.h"
Jeonghoon 3:2a3664dc6634 32 #include "ros/time.h"
Jeonghoon 3:2a3664dc6634 33
Jeonghoon 3:2a3664dc6634 34 namespace ros
Jeonghoon 3:2a3664dc6634 35 {
Jeonghoon 3:2a3664dc6634 36 namespace message_traits
Jeonghoon 3:2a3664dc6634 37 {
Jeonghoon 3:2a3664dc6634 38
Jeonghoon 3:2a3664dc6634 39 #define ROSLIB_CREATE_SIMPLE_TRAITS(Type) \
Jeonghoon 3:2a3664dc6634 40 template<> struct IsSimple<Type> : public TrueType {}; \
Jeonghoon 3:2a3664dc6634 41 template<> struct IsFixedSize<Type> : public TrueType {};
Jeonghoon 3:2a3664dc6634 42
Jeonghoon 3:2a3664dc6634 43 ROSLIB_CREATE_SIMPLE_TRAITS(uint8_t)
Jeonghoon 3:2a3664dc6634 44 ROSLIB_CREATE_SIMPLE_TRAITS(int8_t)
Jeonghoon 3:2a3664dc6634 45 ROSLIB_CREATE_SIMPLE_TRAITS(uint16_t)
Jeonghoon 3:2a3664dc6634 46 ROSLIB_CREATE_SIMPLE_TRAITS(int16_t)
Jeonghoon 3:2a3664dc6634 47 ROSLIB_CREATE_SIMPLE_TRAITS(uint32_t)
Jeonghoon 3:2a3664dc6634 48 ROSLIB_CREATE_SIMPLE_TRAITS(int32_t)
Jeonghoon 3:2a3664dc6634 49 ROSLIB_CREATE_SIMPLE_TRAITS(uint64_t)
Jeonghoon 3:2a3664dc6634 50 ROSLIB_CREATE_SIMPLE_TRAITS(int64_t)
Jeonghoon 3:2a3664dc6634 51 ROSLIB_CREATE_SIMPLE_TRAITS(float)
Jeonghoon 3:2a3664dc6634 52 ROSLIB_CREATE_SIMPLE_TRAITS(double)
Jeonghoon 3:2a3664dc6634 53 ROSLIB_CREATE_SIMPLE_TRAITS(Time)
Jeonghoon 3:2a3664dc6634 54 ROSLIB_CREATE_SIMPLE_TRAITS(Duration)
Jeonghoon 3:2a3664dc6634 55
Jeonghoon 3:2a3664dc6634 56 // because std::vector<bool> is not a true vector, bool is not a simple type
Jeonghoon 3:2a3664dc6634 57 template<> struct IsFixedSize<bool> : public TrueType {};
Jeonghoon 3:2a3664dc6634 58
Jeonghoon 3:2a3664dc6634 59 } // namespace message_traits
Jeonghoon 3:2a3664dc6634 60 } // namespace ros
Jeonghoon 3:2a3664dc6634 61
Jeonghoon 3:2a3664dc6634 62 #endif // ROSLIB_BUILTIN_MESSAGE_TRAITS_H