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
Humanoid Path Planner
hpp-core
Commits
6575624e
Commit
6575624e
authored
Nov 28, 2018
by
Joseph Mirabel
Browse files
[ContinuousValidation] Implement copy of collision pairs.
parent
795b00f0
Changes
4
Hide whitespace changes
Inline
Side-by-side
include/hpp/core/continuous-validation/body-pair-collision.hh
View file @
6575624e
...
...
@@ -92,6 +92,8 @@ namespace hpp {
virtual
std
::
ostream
&
print
(
std
::
ostream
&
os
)
const
=
0
;
virtual
BodyPairCollisionPtr_t
copy
()
const
=
0
;
protected:
/// Constructor of body pair collision
///
...
...
@@ -101,6 +103,11 @@ namespace hpp {
{
}
/// Copy constructor
BodyPairCollision
(
const
BodyPairCollision
&
other
)
:
IntervalValidation
(
other
),
m_
(
other
.
m_
),
maximalVelocity_
(
0
)
{}
virtual
void
setReport
(
CollisionValidationReportPtr_t
&
report
,
fcl
::
CollisionResult
result
,
CollisionPair_t
_pair
)
const
...
...
include/hpp/core/continuous-validation/interval-validation.hh
View file @
6575624e
...
...
@@ -99,6 +99,12 @@ namespace hpp {
}
}
IntervalValidation
(
const
IntervalValidation
&
other
)
:
tolerance_
(
other
.
tolerance_
),
refine_
(
true
)
{
assert
(
tolerance_
>
0
);
}
private:
virtual
void
setupPath
()
=
0
;
};
// class IntervalValidation
...
...
include/hpp/core/continuous-validation/solid-solid-collision.hh
View file @
6575624e
...
...
@@ -110,6 +110,8 @@ namespace hpp {
return
(
m_
->
joint_b
?
m_
->
joint_b
->
index
()
:
0
);
}
BodyPairCollisionPtr_t
copy
()
const
;
protected:
/// Constructor of inter-body collision checking
///
...
...
@@ -130,6 +132,10 @@ namespace hpp {
const
ConstObjectStdVector_t
&
objects_b
,
value_type
tolerance
);
SolidSolidCollision
(
const
SolidSolidCollision
&
other
)
:
BodyPairCollision
(
other
),
m_
(
other
.
m_
)
{}
private:
typedef
pinocchio
::
JointIndex
JointIndex
;
typedef
std
::
vector
<
JointIndex
>
JointIndices_t
;
...
...
src/continuous-validation/solid-solid-collision.cc
View file @
6575624e
...
...
@@ -50,6 +50,11 @@ namespace hpp {
return
shPtr
;
}
BodyPairCollisionPtr_t
SolidSolidCollision
::
copy
()
const
{
return
BodyPairCollisionPtr_t
(
new
SolidSolidCollision
(
*
this
));
}
value_type
SolidSolidCollision
::
computeMaximalVelocity
(
vector_t
&
Vb
)
const
{
value_type
maximalVelocity
=
0
;
...
...
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