diff --git a/CMakeLists.txt b/CMakeLists.txt index bb182e3eb53c9eaff6afaefd1f90de3214b77d23..87a962234db36cd8e1dbb97023ad839411de8c07 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -19,9 +19,9 @@ set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin) set(LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/lib) # edit the following line to add all the source code files of the library -# SET(sources ./src/iri_base_driver.cpp) +# SET(sources ./src/iri_base_algorithm.cpp) # edit the following line to add all the header files of the library -# SET(headers ./include/iri_base_algorithm/iri_base_algorithm.h) +# SET(headers ./include/iri_base_algorithm.h) # FIND_PACKAGE(iriutils REQUIRED) @@ -33,5 +33,5 @@ set(LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/lib) #rosbuild_add_boost_directories() #rosbuild_link_boost(${PROJECT_NAME} thread) #rosbuild_add_executable(example examples/example.cpp) -# target_link_libraries(${PROJECT_NAME} ${iriutils_LIBRARY}) +#target_link_libraries(${PROJECT_NAME} ${iriutils_LIBRARY}) diff --git a/include/iri_base_algorithm/iri_base_algorithm.h b/include/iri_base_algorithm/iri_base_algorithm.h index 3fd4620a3d271df624a7bae7473fe5f5cea07cdc..ea4f3f0320f868ffad966ac4f067f737aa9072f4 100644 --- a/include/iri_base_algorithm/iri_base_algorithm.h +++ b/include/iri_base_algorithm/iri_base_algorithm.h @@ -46,17 +46,18 @@ namespace algorithm_base */ class AbstractAlgorithmNode { - static int ctrl_c_hit_count_; - - static void hupCalled(int sig) - { - ROS_WARN("Unexpected SIGHUP caught. Ignoring it."); - } - - static void sigCalled(int sig) - { - ctrl_c_hit_count_++; - } + protected: + static int ctrl_c_hit_count_; + + static void hupCalled(int sig) + { + ROS_WARN("Unexpected SIGHUP caught. Ignoring it."); + } + + static void sigCalled(int sig) + { + ctrl_c_hit_count_++; + } }; /**