Imported Upstream version 0.4.4
Jochen Sprickerhof
7 years ago
0 | 0 |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
1 | 1 |
Changelog for package rosconsole_bridge
|
2 | 2 |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
3 |
|
|
4 |
0.4.3 (2016-03-11)
|
|
5 |
------------------
|
|
6 |
* use catkin variables for install dirs (`#9 <https://github.com/ros/rosconsole_bridge/issues/9>`_)
|
3 | 7 |
|
4 | 8 |
0.4.2 (2014-07-18)
|
5 | 9 |
------------------
|
19 | 19 |
|
20 | 20 |
install(
|
21 | 21 |
TARGETS ${PROJECT_NAME}
|
22 | |
ARCHIVE DESTINATION lib
|
23 | |
LIBRARY DESTINATION lib
|
|
22 |
ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
|
|
23 |
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
|
24 | 24 |
)
|
25 | 25 |
|
26 | 26 |
install(
|
27 | |
DIRECTORY include/
|
28 | |
DESTINATION include
|
29 | |
FILES_MATCHING PATTERN "*.h"
|
30 | |
)
|
|
27 |
DIRECTORY include/${PROJECT_NAME}/
|
|
28 |
DESTINATION ${CATKIN_PACKAGE_INCLUDE_DESTINATION})
|
|
29 |
|
|
30 |
if(CATKIN_ENABLE_TESTING)
|
|
31 |
add_subdirectory(test)
|
|
32 |
endif()
|
45 | 45 |
{
|
46 | 46 |
public:
|
47 | 47 |
OutputHandlerROS(void);
|
|
48 |
~OutputHandlerROS();
|
48 | 49 |
virtual void log(const std::string &text, console_bridge::LogLevel level, const char *filename, int line);
|
49 | 50 |
};
|
50 | 51 |
|
0 | 0 |
<package>
|
1 | 1 |
<name>rosconsole_bridge</name>
|
2 | |
<version>0.4.2</version>
|
|
2 |
<version>0.4.4</version>
|
3 | 3 |
<description>rosconsole_bridge is a package used in conjunction with console_bridge and rosconsole for connecting console_bridge-based logging to rosconsole-based logging.</description>
|
4 | 4 |
|
5 | 5 |
<author>Ioan Sucan</author>
|
42 | 42 |
|
43 | 43 |
OutputHandlerROS::OutputHandlerROS(void) : OutputHandler()
|
44 | 44 |
{
|
|
45 |
}
|
|
46 |
|
|
47 |
OutputHandlerROS::~OutputHandlerROS(void) {
|
|
48 |
console_bridge::restorePreviousOutputHandler();
|
45 | 49 |
}
|
46 | 50 |
|
47 | 51 |
void OutputHandlerROS::log(const std::string &text, console_bridge::LogLevel level, const char *filename, int line)
|
|
0 |
# How can we ensure that the binary goes to build dir only, not devel dir?
|
|
1 |
add_executable(cleanup cleanup.cpp)
|
|
2 |
target_link_libraries(cleanup rosconsole_bridge)
|
|
3 |
add_test(cleanup COMMAND cleanup)
|
|
0 |
#include <console_bridge/console.h>
|
|
1 |
#include <rosconsole_bridge/bridge.h>
|
|
2 |
|
|
3 |
struct A {
|
|
4 |
A(const char* hint) {
|
|
5 |
logWarn("initializing class: %s", hint);
|
|
6 |
}
|
|
7 |
~A() {
|
|
8 |
logWarn("destroying class");
|
|
9 |
}
|
|
10 |
};
|
|
11 |
|
|
12 |
// destructor of static instance should use the original output handler
|
|
13 |
static A a("static");
|
|
14 |
|
|
15 |
REGISTER_ROSCONSOLE_BRIDGE;
|
|
16 |
|
|
17 |
int main(int argc, char **argv)
|
|
18 |
{
|
|
19 |
A a("local");
|
|
20 |
return 0;
|
|
21 |
}
|