Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Stack Of Tasks
roscontrol_sot
Commits
9a3d5514
Commit
9a3d5514
authored
Oct 17, 2018
by
Joseph Mirabel
Committed by
Joseph Mirabel
Oct 18, 2018
Browse files
Add dynamic-graph real time logger
parent
c0c4fc9f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/roscontrol-sot-controller.cpp
View file @
9a3d5514
...
...
@@ -8,6 +8,9 @@
#include
<ros/console.h>
#define ENABLE_RT_LOG
#include
<dynamic-graph/real-time-logger.h>
#if DEBUG
#define ODEBUG(x) std::cout << x << std::endl
#else
...
...
@@ -35,6 +38,14 @@
#define ODEBUG4FULL(x)
#define ODEBUG4(x)
class
LoggerROSStream
:
public
::
dynamicgraph
::
LoggerStream
{
public:
void
write
(
const
char
*
c
)
{
ROS_ERROR
(
c
);
}
};
/// lhi: nickname for local_hardware_interface
/// Depends if we are on the real robot or not.
...
...
@@ -995,6 +1006,9 @@ namespace sot_controller
void
RCSotController
::
starting
(
const
ros
::
Time
&
)
{
using
namespace
::
dynamicgraph
;
RealTimeLogger
::
instance
().
addOutputStream
(
LoggerStreamPtr_t
(
new
LoggerROSStream
()));
fillSensors
();
}
...
...
@@ -1005,6 +1019,9 @@ namespace sot_controller
RcSotLog
.
save
(
afilename
);
SotLoaderBasic
::
CleanUp
();
using
namespace
::
dynamicgraph
;
RealTimeLogger
::
destroy
();
}
std
::
string
RCSotController
::
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment