Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
hpp-manipulation
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
Guilhem Saurel
hpp-manipulation
Commits
0b70e564
Commit
0b70e564
authored
9 years ago
by
Joseph Mirabel
Committed by
Joseph Mirabel
9 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Add member Handle::clearance_
parent
a2910a8e
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
include/hpp/manipulation/handle.hh
+22
-1
22 additions, 1 deletion
include/hpp/manipulation/handle.hh
with
22 additions
and
1 deletion
include/hpp/manipulation/handle.hh
+
22
−
1
View file @
0b70e564
...
@@ -124,6 +124,24 @@ namespace hpp {
...
@@ -124,6 +124,24 @@ namespace hpp {
return
handle
->
createGrasp
(
gripper
);
return
handle
->
createGrasp
(
gripper
);
}
}
/// 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
;
}
protected
:
protected
:
/// Constructor
/// Constructor
/// \param robot the robot that grasps the handle,
/// \param robot the robot that grasps the handle,
...
@@ -133,7 +151,8 @@ namespace hpp {
...
@@ -133,7 +151,8 @@ namespace hpp {
Handle
(
const
std
::
string
&
name
,
const
Transform3f
&
localPosition
,
Handle
(
const
std
::
string
&
name
,
const
Transform3f
&
localPosition
,
const
JointPtr_t
&
joint
)
:
name_
(
name
),
const
JointPtr_t
&
joint
)
:
name_
(
name
),
localPosition_
(
localPosition
),
localPosition_
(
localPosition
),
joint_
(
joint
),
weakPtr_
()
joint_
(
joint
),
clearance_
(
0
),
weakPtr_
()
{
{
}
}
void
init
(
HandleWkPtr_t
weakPtr
)
void
init
(
HandleWkPtr_t
weakPtr
)
...
@@ -149,6 +168,8 @@ namespace hpp {
...
@@ -149,6 +168,8 @@ namespace hpp {
Transform3f
localPosition_
;
Transform3f
localPosition_
;
/// Joint to which the handle is linked.
/// Joint to which the handle is linked.
JointPtr_t
joint_
;
JointPtr_t
joint_
;
/// Clearance
value_type
clearance_
;
/// Weak pointer to itself
/// Weak pointer to itself
HandleWkPtr_t
weakPtr_
;
HandleWkPtr_t
weakPtr_
;
...
...
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