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
sot-core
Commits
61cf3e4a
Commit
61cf3e4a
authored
May 13, 2019
by
Olivier Stasse
Browse files
[device] cmdDisplay
parent
7bc2ca88
Changes
2
Hide whitespace changes
Inline
Side-by-side
include/sot/core/device.hh
View file @
61cf3e4a
...
...
@@ -107,6 +107,7 @@ namespace dynamicgraph {
public:
/* --- DISPLAY --- */
virtual
void
display
(
std
::
ostream
&
os
)
const
;
virtual
void
cmdDisplay
();
SOT_CORE_EXPORT
friend
std
::
ostream
&
operator
<<
(
std
::
ostream
&
os
,
const
Device
&
r
)
{
r
.
display
(
os
);
return
os
;
...
...
src/tools/device.cpp
View file @
61cf3e4a
...
...
@@ -174,6 +174,16 @@ Device( const std::string& n )
(
*
this
,
&
Device
::
setSecondOrderIntegration
,
docstring
));
/* Display information */
docstring
=
"
\n
"
" Display information on device
\n
"
"
\n
"
;
addCommand
(
"display"
,
command
::
makeCommandVoid0
(
*
this
,
&
Device
::
cmdDisplay
,
docstring
));
/* SET of control input type. */
docstring
=
"
\n
"
...
...
@@ -597,3 +607,10 @@ void Device::display ( std::ostream& os ) const
<<
"sanityCheck: "
<<
sanityCheck_
<<
endl
<<
"controlInputType:"
<<
controlInputType_
<<
endl
;
}
void
Device
::
cmdDisplay
(
)
{
std
::
cout
<<
name
<<
": "
<<
state_
<<
endl
<<
"sanityCheck: "
<<
sanityCheck_
<<
endl
<<
"controlInputType:"
<<
controlInputType_
<<
endl
;
}
Write
Preview
Markdown
is supported
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