Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
talos-metapkg-ros-control-sot
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Guilhem Saurel
talos-metapkg-ros-control-sot
Commits
caacdcd2
Commit
caacdcd2
authored
7 years ago
by
Olivier Stasse
Browse files
Options
Downloads
Patches
Plain Diff
[roscontrol_sot] Add information when an exception is thrown.
parent
29ebd62c
No related branches found
Branches containing commit
Tags
v0.0.7
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
talos_roscontrol_sot/src/roscontrol-sot-controller.cpp
+29
-2
29 additions, 2 deletions
talos_roscontrol_sot/src/roscontrol-sot-controller.cpp
with
29 additions
and
2 deletions
talos_roscontrol_sot/src/roscontrol-sot-controller.cpp
+
29
−
2
View file @
caacdcd2
...
...
@@ -706,7 +706,15 @@ namespace talos_sot_controller
sotController_
->
nominalSetSensors
(
sensorsIn_
);
sotController_
->
getControl
(
controlValues_
);
}
catch
(
std
::
exception
&
e
)
{
throw
e
;}
catch
(
std
::
exception
&
e
)
{
std
::
cerr
<<
"Failure happened during one_iteration of RCSotController::one_iteration: std_exception"
<<
std
::
endl
;
std
::
cerr
<<
"Use gdb on this line together with gdb to investiguate the problem: "
<<
std
::
endl
;
std
::
cerr
<<
__FILE__
<<
" "
<<
__LINE__
<<
std
::
endl
;
throw
exc
;
throw
e
;
}
/// Read the control values
readControl
(
controlValues_
);
...
...
@@ -720,7 +728,26 @@ namespace talos_sot_controller
{
// Do not send any control if the dynamic graph is not started
if
(
!
isDynamicGraphStopped
())
one_iteration
();
{
try
{
one_iteration
();
}
catch
(
std
::
exception
const
&
exc
)
{
std
::
cerr
<<
"Failure happened during one_iteration evaluation: std_exception"
<<
std
::
endl
;
std
::
cerr
<<
"Use gdb on this line together with gdb to investiguate the problem: "
<<
std
::
endl
;
std
::
cerr
<<
__FILE__
<<
" "
<<
__LINE__
<<
std
::
endl
;
throw
exc
;
}
catch
(...)
{
std
::
cerr
<<
"Failure happened during one_iteration evaluation: unknown exception"
<<
std
::
endl
;
std
::
cerr
<<
"Use gdb on this line together with gdb to investiguate the problem: "
<<
std
::
endl
;
std
::
cerr
<<
__FILE__
<<
" "
<<
__LINE__
<<
std
::
endl
;
throw
exc
;
}
}
else
// But in effort mode it means that we are sending 0
// Therefore implements a default PD controller on the system.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment