|
hpp-manipulation-corba
4.12.0
Corba server for manipulation planning
|
Default implementation of ConstraintGraphFactory. More...


Classes | |
| class | StateAndManifold |
Public Member Functions | |
| def | __init__ (self, graph) |
Default functions | |
| def | makeState (self, grasps, priority) |
| def | makeLoopTransition (self, state) |
| def | makeTransition (self, stateFrom, stateTo, ig) |
| Make transition between to states. More... | |
Tuning the constraints | |
| def | setPreplacementDistance (self, obj, distance) |
| Set preplacement distance. More... | |
| def | getPreplacementDistance (self, obj) |
| Get preplacement distance. More... | |
Public Member Functions inherited from manipulation.constraint_graph_factory.GraphFactoryAbstract | |
| def | __init__ (self) |
| def | setGrippers (self, grippers) |
| def | setObjects (self, objects, handlesPerObjects, contactsPerObjects) |
| def | environmentContacts (self, envContacts) |
| def | setRules (self, rules) |
| Set the function graspIsAllowed. More... | |
| def | generate (self) |
| Go through the combinatorial defined by the grippers and handles and create the states and transitions. More... | |
| def | makeState (self, grasps, priority) |
| Create a new state. More... | |
| def | makeLoopTransition (self, state) |
| Create a loop transition. More... | |
| def | transitionIsAllowed (self, stateFrom, stateTo) |
| Check whether a transition between two states is allowed. More... | |
| def | makeTransition (self, stateFrom, stateTo, ig) |
| Create two transitions between two different states. More... | |
Public Attributes | |
| constraints | |
| Stores the constraints in a child class of ConstraintFactoryAbstract. More... | |
| graph | |
Public Attributes inherited from manipulation.constraint_graph_factory.GraphFactoryAbstract | |
| graspIsAllowed | |
| Reduces the problem combinatorial. More... | |
| states | |
| transitions | |
| handles | |
| the handle names More... | |
| grippers | |
| the gripper names More... | |
| envContacts | |
| the names of contact on the environment More... | |
| objects | |
| the object names More... | |
| handlesPerObjects | |
| See setObjects. More... | |
| objectFromHandle | |
| See setObjects. More... | |
| contactsPerObjects | |
| See setObjects. More... | |
Static Public Attributes | |
| float | defaultPreplaceDist = 0.05 |
| defaut distance between objec and surface in preplacement configuration More... | |
| preplaceDistance = dict() | |
| See methods setPreplacementDistance and getPreplacementDistance. More... | |
Default implementation of ConstraintGraphFactory.
The minimal usage is the following:
| def manipulation.constraint_graph_factory.ConstraintGraphFactory.__init__ | ( | self, | |
| graph | |||
| ) |
| graph | an instance of ConstraintGraph |
| def manipulation.constraint_graph_factory.ConstraintGraphFactory.getPreplacementDistance | ( | self, | |
| obj | |||
| ) |
Get preplacement distance.
| obj | name of the object |
| def manipulation.constraint_graph_factory.ConstraintGraphFactory.makeLoopTransition | ( | self, | |
| state | |||
| ) |
| def manipulation.constraint_graph_factory.ConstraintGraphFactory.makeState | ( | self, | |
| grasps, | |||
| priority | |||
| ) |
| def manipulation.constraint_graph_factory.ConstraintGraphFactory.makeTransition | ( | self, | |
| stateFrom, | |||
| stateTo, | |||
| ig | |||
| ) |
Make transition between to states.
| stateFrom | initial state, |
| stateTo | new state |
| ig | index of gripper |
stateTo grasps are the union of stateFrom grasps with a set containing a grasp by gripper of index ig in list self.grippers of a handle. The index of the newly grasped handle can be found by stateTo.grasps[ig]
| def manipulation.constraint_graph_factory.ConstraintGraphFactory.setPreplacementDistance | ( | self, | |
| obj, | |||
| distance | |||
| ) |
Set preplacement distance.
| obj | name of the object |
| distance | distance of object to surface in preplacement configuration |
| manipulation.constraint_graph_factory.ConstraintGraphFactory.constraints |
Stores the constraints in a child class of ConstraintFactoryAbstract.
|
static |
defaut distance between objec and surface in preplacement configuration
| manipulation.constraint_graph_factory.ConstraintGraphFactory.graph |
|
static |
See methods setPreplacementDistance and getPreplacementDistance.