Skip to content
Snippets Groups Projects
Commit d709df55 authored by Joan Perez Ibarz's avatar Joan Perez Ibarz
Browse files

- removing unnecessary include directories in CMakelists from iri base driver

- define attributes of abstract class as protected for inheritance prevention
parent 51808df9
No related branches found
No related tags found
No related merge requests found
......@@ -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})
......@@ -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_++;
}
};
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment