Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
pinocchio
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
Stack Of Tasks
pinocchio
Commits
121814de
Commit
121814de
authored
9 years ago
by
jcarpent
Browse files
Options
Downloads
Patches
Plain Diff
[C++] Raise an exception when the urdf tree is badly formated
parent
d0f91b16
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/multibody/parser/urdf.hpp
+4
-2
4 additions, 2 deletions
src/multibody/parser/urdf.hpp
with
4 additions
and
2 deletions
src/multibody/parser/urdf.hpp
+
4
−
2
View file @
121814de
...
...
@@ -284,7 +284,8 @@ inline void parseTree( ::urdf::LinkConstPtr link, Model & model, const SE3 & pla
parseTree
(
urdfTree
->
getRoot
(),
model
,
SE3
::
Identity
(),
root_joint
);
else
{
std
::
cerr
<<
"The URDF tree seems to be empty"
<<
std
::
endl
;
// In future, raise exception instead
const
std
::
string
exception_message
(
"The file "
+
filename
+
" does not contain a valid URDF model."
);
throw
std
::
invalid_argument
(
exception_message
);
}
return
model
;
...
...
@@ -299,7 +300,8 @@ inline void parseTree( ::urdf::LinkConstPtr link, Model & model, const SE3 & pla
parseTree
(
urdfTree
->
getRoot
(),
model
,
SE3
::
Identity
());
else
{
std
::
cerr
<<
"The URDF tree seems to be empty"
<<
std
::
endl
;
// In future, raise exception instead
const
std
::
string
exception_message
(
"The file "
+
filename
+
" does not contain a valid URDF model."
);
throw
std
::
invalid_argument
(
exception_message
);
}
return
model
;
...
...
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