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 Stanford University or 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_EXCEPTION_H
Jeonghoon 3:2a3664dc6634 29 #define ROSLIB_EXCEPTION_H
Jeonghoon 3:2a3664dc6634 30
Jeonghoon 3:2a3664dc6634 31 #include <stdexcept>
Jeonghoon 3:2a3664dc6634 32
Jeonghoon 3:2a3664dc6634 33 namespace ros
Jeonghoon 3:2a3664dc6634 34 {
Jeonghoon 3:2a3664dc6634 35
Jeonghoon 3:2a3664dc6634 36 /**
Jeonghoon 3:2a3664dc6634 37 * \brief Base class for all exceptions thrown by ROS
Jeonghoon 3:2a3664dc6634 38 */
Jeonghoon 3:2a3664dc6634 39 class Exception : public std::runtime_error
Jeonghoon 3:2a3664dc6634 40 {
Jeonghoon 3:2a3664dc6634 41 public:
Jeonghoon 3:2a3664dc6634 42 Exception(const std::string& what)
Jeonghoon 3:2a3664dc6634 43 : std::runtime_error(what)
Jeonghoon 3:2a3664dc6634 44 {}
Jeonghoon 3:2a3664dc6634 45 };
Jeonghoon 3:2a3664dc6634 46
Jeonghoon 3:2a3664dc6634 47 } // namespace ros
Jeonghoon 3:2a3664dc6634 48
Jeonghoon 3:2a3664dc6634 49 #endif