-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Trimmed the branch to only the roscpp_traits sub directory"
This reverts commit 51ce4d3.
- Loading branch information
1 parent
51ce4d3
commit e583129
Showing
46 changed files
with
4,793 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
Changelog for package cpp_common | ||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
0.6.2 (2017-02-14) | ||
------------------ | ||
|
||
0.6.1 (2016-09-02) | ||
------------------ | ||
|
||
0.6.0 (2016-03-17) | ||
------------------ | ||
|
||
0.5.7 (2016-03-09) | ||
------------------ | ||
* export symbols for Header (`#46 <https://github.com/ros/roscpp_core/pull/46>`_) | ||
|
||
0.5.6 (2015-05-20) | ||
------------------ | ||
|
||
0.5.5 (2014-12-22) | ||
------------------ | ||
|
||
0.5.4 (2014-07-23) | ||
------------------ | ||
|
||
0.5.3 (2014-06-28) | ||
------------------ | ||
* add missing boost dependency (`#24 <https://github.com/ros/roscpp_core/issues/24>`_) | ||
|
||
0.5.2 (2014-06-27) | ||
------------------ | ||
* find_package console_bridge with REQUIRED (`#23 <https://github.com/ros/roscpp_core/issues/23>`_) | ||
|
||
0.5.1 (2014-06-24) | ||
------------------ | ||
* convert to use console bridge from upstream debian package (`ros/rosdistro#4633 <https://github.com/ros/rosdistro/issues/4633>`_) | ||
|
||
0.5.0 (2014-02-19) | ||
------------------ | ||
|
||
0.4.2 (2014-02-11) | ||
------------------ | ||
|
||
0.4.1 (2014-02-11) | ||
------------------ | ||
|
||
0.4.0 (2014-01-29) | ||
------------------ | ||
|
||
0.3.17 (2014-01-07) | ||
------------------- | ||
* move several client library independent parts from ros_comm into roscpp_core (`#12 <https://github.com/ros/roscpp_core/issues/12>`_) | ||
|
||
0.3.16 (2013-07-14) | ||
------------------- | ||
|
||
0.3.15 (2013-06-06) | ||
------------------- | ||
* fix install destination for dll's under Windows | ||
|
||
0.3.14 (2013-03-21) | ||
------------------- | ||
|
||
0.3.13 (2013-03-08) | ||
------------------- | ||
|
||
0.3.12 (2013-01-13) | ||
------------------- | ||
|
||
0.3.11 (2012-12-21) | ||
------------------- | ||
* first public release for Groovy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
cmake_minimum_required(VERSION 2.8.3) | ||
project(cpp_common) | ||
|
||
find_package(Boost REQUIRED COMPONENTS system thread) | ||
find_package(console_bridge REQUIRED) | ||
find_package(catkin REQUIRED) | ||
catkin_package( | ||
DEPENDS Boost console_bridge | ||
INCLUDE_DIRS include | ||
LIBRARIES ${PROJECT_NAME}) | ||
|
||
include(CheckIncludeFile) | ||
include(CheckFunctionExists) | ||
include(CheckCXXSourceCompiles) | ||
|
||
include_directories(include ${Boost_INCLUDE_DIRS} ${console_bridge_INCLUDE_DIRS}) | ||
|
||
# execinfo.h is needed for backtrace on glibc systems | ||
CHECK_INCLUDE_FILE(execinfo.h HAVE_EXECINFO_H) | ||
if(HAVE_EXECINFO_H) | ||
add_definitions(-DHAVE_EXECINFO_H=1) | ||
endif(HAVE_EXECINFO_H) | ||
# do we have demangle capability? | ||
# CHECK_INCLUDE_FILE doesn't work here for some reason | ||
CHECK_CXX_SOURCE_COMPILES("#include<cxxabi.h>\nintmain(intargc,char**argv){}" HAVE_CXXABI_H) | ||
if(HAVE_CXXABI_H) | ||
add_definitions(-DHAVE_CXXABI_H=1) | ||
endif() | ||
CHECK_FUNCTION_EXISTS(backtrace HAVE_GLIBC_BACKTRACE) | ||
if(HAVE_GLIBC_BACKTRACE) | ||
add_definitions(-DHAVE_GLIBC_BACKTRACE) | ||
endif(HAVE_GLIBC_BACKTRACE) | ||
|
||
add_library(${PROJECT_NAME} src/debug.cpp src/header.cpp) | ||
target_link_libraries(${PROJECT_NAME} ${Boost_LIBRARIES} ${console_bridge_LIBRARIES}) | ||
|
||
install(TARGETS ${PROJECT_NAME} | ||
ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION} | ||
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION} | ||
RUNTIME DESTINATION ${CATKIN_GLOBAL_BIN_DESTINATION}) | ||
|
||
install(DIRECTORY include/ | ||
DESTINATION ${CATKIN_GLOBAL_INCLUDE_DESTINATION} | ||
FILES_MATCHING PATTERN "*.h") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
/* | ||
* Copyright (C) 2009, Willow Garage, Inc. | ||
* | ||
* Redistribution and use in source and binary forms, with or without | ||
* modification, are permitted provided that the following conditions are met: | ||
* * Redistributions of source code must retain the above copyright notice, | ||
* this list of conditions and the following disclaimer. | ||
* * Redistributions in binary form must reproduce the above copyright | ||
* notice, this list of conditions and the following disclaimer in the | ||
* documentation and/or other materials provided with the distribution. | ||
* * Neither the names of Stanford University or Willow Garage, Inc. nor the names of its | ||
* contributors may be used to endorse or promote products derived from | ||
* this software without specific prior written permission. | ||
* | ||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" | ||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE | ||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR | ||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF | ||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS | ||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN | ||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | ||
* POSSIBILITY OF SUCH DAMAGE. | ||
*/ | ||
#ifndef ROS_CPP_COMMON_DECL_H_INCLUDED | ||
#define ROS_CPP_COMMON_DECL_H_INCLUDED | ||
|
||
#include <ros/macros.h> | ||
|
||
#ifdef ROS_BUILD_SHARED_LIBS // ros is being built around shared libraries | ||
#ifdef cpp_common_EXPORTS // we are building a shared lib/dll | ||
#define CPP_COMMON_DECL ROS_HELPER_EXPORT | ||
#else // we are using shared lib/dll | ||
#define CPP_COMMON_DECL ROS_HELPER_IMPORT | ||
#endif | ||
#else // ros is being built around static libraries | ||
#define CPP_COMMON_DECL | ||
#endif | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
/* | ||
* Copyright (C) 2008, Morgan Quigley and Willow Garage, Inc. | ||
* | ||
* Redistribution and use in source and binary forms, with or without | ||
* modification, are permitted provided that the following conditions are met: | ||
* * Redistributions of source code must retain the above copyright notice, | ||
* this list of conditions and the following disclaimer. | ||
* * Redistributions in binary form must reproduce the above copyright | ||
* notice, this list of conditions and the following disclaimer in the | ||
* documentation and/or other materials provided with the distribution. | ||
* * Neither the names of Stanford University or Willow Garage, Inc. nor the names of its | ||
* contributors may be used to endorse or promote products derived from | ||
* this software without specific prior written permission. | ||
* | ||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" | ||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE | ||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR | ||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF | ||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS | ||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN | ||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | ||
* POSSIBILITY OF SUCH DAMAGE. | ||
*/ | ||
|
||
#ifndef CPP_CORE_TYPES_H | ||
#define CPP_CORE_TYPES_H | ||
|
||
#include <string> | ||
#include <vector> | ||
#include <map> | ||
#include <set> | ||
#include <list> | ||
|
||
#include <boost/shared_ptr.hpp> | ||
|
||
|
||
namespace ros { | ||
|
||
typedef std::vector<std::pair<std::string, std::string> > VP_string; | ||
typedef std::vector<std::string> V_string; | ||
typedef std::set<std::string> S_string; | ||
typedef std::map<std::string, std::string> M_string; | ||
typedef std::pair<std::string, std::string> StringPair; | ||
|
||
typedef boost::shared_ptr<M_string> M_stringPtr; | ||
|
||
} | ||
|
||
#endif // CPP_CORE_TYPES_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
/* | ||
* Copyright (C) 2009, Willow Garage, Inc. | ||
* | ||
* Redistribution and use in source and binary forms, with or without | ||
* modification, are permitted provided that the following conditions are met: | ||
* * Redistributions of source code must retain the above copyright notice, | ||
* this list of conditions and the following disclaimer. | ||
* * Redistributions in binary form must reproduce the above copyright | ||
* notice, this list of conditions and the following disclaimer in the | ||
* documentation and/or other materials provided with the distribution. | ||
* * Neither the names of Stanford University or Willow Garage, Inc. nor the names of its | ||
* contributors may be used to endorse or promote products derived from | ||
* this software without specific prior written permission. | ||
* | ||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" | ||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE | ||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR | ||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF | ||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS | ||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN | ||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | ||
* POSSIBILITY OF SUCH DAMAGE. | ||
*/ | ||
|
||
#ifndef ROSLIB_DEBUG_H | ||
#define ROSLIB_DEBUG_H | ||
|
||
#include <string> | ||
#include <vector> | ||
#include "cpp_common_decl.h" | ||
|
||
namespace ros | ||
{ | ||
|
||
namespace debug | ||
{ | ||
typedef std::vector<void*> V_void; | ||
typedef std::vector<std::string> V_string; | ||
|
||
CPP_COMMON_DECL std::string getBacktrace(); | ||
CPP_COMMON_DECL std::string backtraceToString(const V_void& addresses); | ||
CPP_COMMON_DECL void getBacktrace(V_void& addresses); | ||
CPP_COMMON_DECL void translateAddresses(const V_void& addresses, V_string& lines); | ||
CPP_COMMON_DECL void demangleBacktrace(const V_string& names, V_string& demangled); | ||
CPP_COMMON_DECL std::string demangleBacktrace(const V_string& names); | ||
CPP_COMMON_DECL std::string demangleName(const std::string& name); | ||
} | ||
|
||
} | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
/* | ||
* Copyright (C) 2009, Willow Garage, Inc. | ||
* | ||
* Redistribution and use in source and binary forms, with or without | ||
* modification, are permitted provided that the following conditions are met: | ||
* * Redistributions of source code must retain the above copyright notice, | ||
* this list of conditions and the following disclaimer. | ||
* * Redistributions in binary form must reproduce the above copyright | ||
* notice, this list of conditions and the following disclaimer in the | ||
* documentation and/or other materials provided with the distribution. | ||
* * Neither the names of Stanford University or Willow Garage, Inc. nor the names of its | ||
* contributors may be used to endorse or promote products derived from | ||
* this software without specific prior written permission. | ||
* | ||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" | ||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE | ||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR | ||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF | ||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS | ||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN | ||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | ||
* POSSIBILITY OF SUCH DAMAGE. | ||
*/ | ||
|
||
#ifndef ROSLIB_EXCEPTION_H | ||
#define ROSLIB_EXCEPTION_H | ||
|
||
#include <stdexcept> | ||
|
||
namespace ros | ||
{ | ||
|
||
/** | ||
* \brief Base class for all exceptions thrown by ROS | ||
*/ | ||
class Exception : public std::runtime_error | ||
{ | ||
public: | ||
Exception(const std::string& what) | ||
: std::runtime_error(what) | ||
{} | ||
}; | ||
|
||
} // namespace ros | ||
|
||
#endif | ||
|
Oops, something went wrong.