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
hpp-fcl
Commits
5f15b65c
Verified
Commit
5f15b65c
authored
Mar 12, 2020
by
Justin Carpentier
Browse files
core/contact: throw when no contact is available
parent
8cb5e267
Changes
1
Hide whitespace changes
Inline
Side-by-side
include/hpp/fcl/collision_data.h
View file @
5f15b65c
...
...
@@ -255,6 +255,9 @@ public:
/// @brief get the i-th contact calculated
const
Contact
&
getContact
(
size_t
i
)
const
{
if
(
contacts
.
size
()
==
0
)
throw
std
::
invalid_argument
(
"The number of contacts is zero. No Contact can be returned."
);
if
(
i
<
contacts
.
size
())
return
contacts
[
i
];
else
...
...
Write
Preview
Supports
Markdown
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