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
Humanoid Path Planner
hpp-manipulation
Commits
33ad63d5
Commit
33ad63d5
authored
8 years ago
by
Florent Lamiraux
Browse files
Options
Downloads
Patches
Plain Diff
Enhance Edge documentation.
parent
05d63c56
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/graph/edge.hh
+42
-4
42 additions, 4 deletions
include/hpp/manipulation/graph/edge.hh
with
42 additions
and
4 deletions
include/hpp/manipulation/graph/edge.hh
+
42
−
4
View file @
33ad63d5
...
@@ -55,7 +55,31 @@ namespace hpp {
...
@@ -55,7 +55,31 @@ namespace hpp {
/// \addtogroup constraint_graph
/// \addtogroup constraint_graph
/// \{
/// \{
/// Abstract class representing representing the link between two nodes.
/// Transition between two nodes of a constraint graph
///
/// An edge stores two types of constraints.
/// \li <b> Path constraints </b> should be safisfied by paths belonging
/// to the edge. Along any path, the right hand side of the
/// constraint is constant, but can differ between paths. For
/// instance if an edge represents a transit path of a robot
/// that can grasp an object, the right hand side of the
/// constraint represents the position of the object. Along any
/// transit path, the object does not move, but for different paths
/// the object can be at different positions.
/// \sa method pathConstraint.
/// \li <b> Configuration constraints </b> are constraints that
/// configurations in the destination node should satisfy and
/// the constraints that paths should satisfy. For instance, if
/// the edge links a node where the robot does not hold the
/// object to a node where the robot holds the object, the
/// configuration constraints represent a fixed relative
/// position of the object with respect to the gripper and a
/// stable position of the object. Configuration constraints
/// are necessary to generate a configuration in the start node
/// of the edge that can reach a given configuration in the
/// destination node by an admissible path. \sa methods
/// configConstraint, canConnect, applyConstraints.
class
HPP_MANIPULATION_DLLAPI
Edge
:
public
GraphComponent
class
HPP_MANIPULATION_DLLAPI
Edge
:
public
GraphComponent
{
{
public:
public:
...
@@ -69,8 +93,23 @@ namespace hpp {
...
@@ -69,8 +93,23 @@ namespace hpp {
const
NodeWkPtr_t
&
from
,
const
NodeWkPtr_t
&
from
,
const
NodeWkPtr_t
&
to
);
const
NodeWkPtr_t
&
to
);
/// Apply edge constraint
///
/// \param nnear node containing the configuration defining the right
/// hand side of the edge constraint,
/// \param[in,out] q configuration to which the edge constraint is
/// applied.
///
/// \sa hpp::core::ConfigProjector::rightHandSideFromConfig
virtual
bool
applyConstraints
(
core
::
NodePtr_t
nnear
,
ConfigurationOut_t
q
)
const
;
virtual
bool
applyConstraints
(
core
::
NodePtr_t
nnear
,
ConfigurationOut_t
q
)
const
;
/// Apply edge constraint
///
/// \param qoffset configuration defining the right hand side of the
/// edge constraint,
/// \param[in,out] q configuration to which the edge constraint is
/// applied.
///
/// \sa hpp::core::ConfigProjector::rightHandSideFromConfig
virtual
bool
applyConstraints
(
ConfigurationIn_t
qoffset
,
ConfigurationOut_t
q
)
const
;
virtual
bool
applyConstraints
(
ConfigurationIn_t
qoffset
,
ConfigurationOut_t
q
)
const
;
virtual
bool
canConnect
(
ConfigurationIn_t
q1
,
ConfigurationIn_t
q2
)
const
;
virtual
bool
canConnect
(
ConfigurationIn_t
q1
,
ConfigurationIn_t
q2
)
const
;
...
@@ -126,8 +165,7 @@ namespace hpp {
...
@@ -126,8 +165,7 @@ namespace hpp {
/// Print the object in a stream.
/// Print the object in a stream.
virtual
std
::
ostream
&
dotPrint
(
std
::
ostream
&
os
,
dot
::
DrawingAttributes
da
=
dot
::
DrawingAttributes
())
const
;
virtual
std
::
ostream
&
dotPrint
(
std
::
ostream
&
os
,
dot
::
DrawingAttributes
da
=
dot
::
DrawingAttributes
())
const
;
/// Constraint to project onto the same leaf as config.
/// Constraint of the destination node and of the path
/// \return The initialized projector.
ConstraintSetPtr_t
configConstraint
()
const
;
ConstraintSetPtr_t
configConstraint
()
const
;
void
setShort
(
bool
isShort
)
{
void
setShort
(
bool
isShort
)
{
...
...
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