Skip to content
GitLab
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
3b8312b4
Commit
3b8312b4
authored
Dec 07, 2019
by
Olivier Stasse
Browse files
Provide a more explicit message when dealing with exception from the SoT.
parent
acba39aa
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/roscontrol-sot-controller.cpp
View file @
3b8312b4
...
...
@@ -935,11 +935,25 @@ void RCSotController::one_iteration() {
/// Generate a control law.
try
{
sotController_
->
nominalSetSensors
(
sensorsIn_
);
}
catch
(
std
::
exception
&
e
)
{
std
::
cerr
<<
"Failure happened during one_iteration(): "
<<
"when calling nominalSetSensors "
<<
std
::
endl
;
std
::
cerr
<<
__FILE__
<<
" "
<<
__LINE__
<<
std
::
endl
<<
e
.
what
()
<<
std
::
endl
;
throw
e
;
}
try
{
sotController_
->
getControl
(
controlValues_
);
}
catch
(
std
::
exception
&
e
)
{
std
::
cerr
<<
"Failure happened during one_iteration(): "
<<
"when calling getControl "
<<
std
::
endl
;
std
::
cerr
<<
__FILE__
<<
" "
<<
__LINE__
<<
std
::
endl
<<
e
.
what
()
<<
std
::
endl
;;
throw
e
;
}
/// Read the control values
readControl
(
controlValues_
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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