capstone_finish

Dependencies:   BufferedSerial motor_sn7544

Committer:
Jeonghoon
Date:
Tue Nov 26 15:30:27 2019 +0000
Revision:
10:ca4e4062701a
Parent:
3:2a3664dc6634
capstone finish

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_MESSAGE_FORWARD_H
Jeonghoon 3:2a3664dc6634 29 #define ROSLIB_MESSAGE_FORWARD_H
Jeonghoon 3:2a3664dc6634 30
Jeonghoon 3:2a3664dc6634 31 // Make sure that either __GLIBCXX__ or _LIBCPP_VERSION is defined.
Jeonghoon 3:2a3664dc6634 32 #include <cstddef>
Jeonghoon 3:2a3664dc6634 33
Jeonghoon 3:2a3664dc6634 34 // C++ standard section 17.4.3.1/1 states that forward declarations of STL types
Jeonghoon 3:2a3664dc6634 35 // that aren't specializations involving user defined types results in undefined
Jeonghoon 3:2a3664dc6634 36 // behavior. Apparently only libc++ has a problem with this and won't compile it.
Jeonghoon 3:2a3664dc6634 37 #ifndef _LIBCPP_VERSION
Jeonghoon 3:2a3664dc6634 38 namespace std
Jeonghoon 3:2a3664dc6634 39 {
Jeonghoon 3:2a3664dc6634 40 template<typename T> class allocator;
Jeonghoon 3:2a3664dc6634 41 }
Jeonghoon 3:2a3664dc6634 42 #else
Jeonghoon 3:2a3664dc6634 43 #include <memory>
Jeonghoon 3:2a3664dc6634 44 #endif
Jeonghoon 3:2a3664dc6634 45
Jeonghoon 3:2a3664dc6634 46 namespace boost
Jeonghoon 3:2a3664dc6634 47 {
Jeonghoon 3:2a3664dc6634 48 template<typename T> class shared_ptr;
Jeonghoon 3:2a3664dc6634 49 }
Jeonghoon 3:2a3664dc6634 50
Jeonghoon 3:2a3664dc6634 51 /**
Jeonghoon 3:2a3664dc6634 52 * \brief Forward-declare a message, including Ptr and ConstPtr types, with an allocator
Jeonghoon 3:2a3664dc6634 53 *
Jeonghoon 3:2a3664dc6634 54 * \param msg The "base" message type, i.e., the name of the .msg file
Jeonghoon 3:2a3664dc6634 55 * \param new_name The name you'd like the message to have
Jeonghoon 3:2a3664dc6634 56 * \param alloc The allocator to use, e.g. std::allocator
Jeonghoon 3:2a3664dc6634 57 */
Jeonghoon 3:2a3664dc6634 58 #define ROS_DECLARE_MESSAGE_WITH_ALLOCATOR(msg, new_name, alloc) \
Jeonghoon 3:2a3664dc6634 59 template<class Allocator> struct msg##_; \
Jeonghoon 3:2a3664dc6634 60 typedef msg##_<alloc<void> > new_name; \
Jeonghoon 3:2a3664dc6634 61 typedef boost::shared_ptr<new_name> new_name##Ptr; \
Jeonghoon 3:2a3664dc6634 62 typedef boost::shared_ptr<new_name const> new_name##ConstPtr;
Jeonghoon 3:2a3664dc6634 63
Jeonghoon 3:2a3664dc6634 64 /**
Jeonghoon 3:2a3664dc6634 65 * \brief Forward-declare a message, including Ptr and ConstPtr types, using std::allocator
Jeonghoon 3:2a3664dc6634 66 * \param msg The "base" message type, i.e. the name of the .msg file
Jeonghoon 3:2a3664dc6634 67 */
Jeonghoon 3:2a3664dc6634 68 #define ROS_DECLARE_MESSAGE(msg) ROS_DECLARE_MESSAGE_WITH_ALLOCATOR(msg, msg, std::allocator)
Jeonghoon 3:2a3664dc6634 69
Jeonghoon 3:2a3664dc6634 70 #endif // ROSLIB_MESSAGE_FORWARD_H