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
Guilhem Saurel
pinocchio
Commits
2abbac65
Commit
2abbac65
authored
Feb 01, 2017
by
Joseph Mirabel
Committed by
Joseph Mirabel
Feb 01, 2017
Browse files
[C++][Parser] Throw exception when mesh file is not found
parent
11395d85
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/parsers/urdf/geometry.cpp
View file @
2abbac65
...
...
@@ -67,6 +67,11 @@ namespace se3
std
::
string
collisionFilename
=
collisionGeometry
->
filename
;
meshPath
=
retrieveResourcePath
(
collisionFilename
,
package_dirs
);
if
(
meshPath
==
""
)
{
std
::
stringstream
ss
;
ss
<<
"Mesh "
<<
collisionFilename
<<
" could not be found."
;
throw
std
::
invalid_argument
(
ss
.
str
());
}
fcl
::
Vec3f
scale
=
fcl
::
Vec3f
(
collisionGeometry
->
scale
.
x
,
collisionGeometry
->
scale
.
y
,
...
...
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