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-model
Commits
484fad33
Commit
484fad33
authored
Aug 26, 2015
by
Joseph Mirabel
Committed by
Florent Lamiraux
Aug 26, 2015
Browse files
Add clearance parameter to class Gripper.
parent
e033ae35
Changes
1
Hide whitespace changes
Inline
Side-by-side
include/hpp/model/gripper.hh
View file @
484fad33
...
...
@@ -112,6 +112,24 @@ namespace hpp {
disabledCollisions_
.
clear
();
}
/// Get the clearance
///
/// The clearance is a distance, from the center of the gripper and along
/// the x-aixs, that "ensures" an object being at that distance is not
/// colliding with this gripper.
/// It also gives an order of magnitude of the size of the gripper.
value_type
clearance
()
const
{
return
clearance_
;
}
/// Set the clearance
/// \sa clearance()
void
clearance
(
const
value_type
&
clearance
)
{
clearance_
=
clearance
;
}
//DifferentiableFunctionPtr_t createGrasp(HandlePtr_t& handle);
GripperPtr_t
clone
()
const
;
...
...
@@ -131,6 +149,7 @@ namespace hpp {
name_
(
name
),
joint_
(
joint
),
objectPositionInJoint_
(
objectPositionInJoint
),
clearance_
(
0
),
disabledCollisions_
(
disabledCollisions
)
{
}
...
...
@@ -145,6 +164,8 @@ namespace hpp {
/// Joint of the robot that holds handles.
JointPtr_t
joint_
;
Transform3f
objectPositionInJoint_
;
/// Clearance
value_type
clearance_
;
/// Joints that will be in collision with the object
/// => disabled collision between object and bodies of the joints
JointVector_t
disabledCollisions_
;
...
...
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