|
hpp-manipulation-corba
4.12.0
Corba server for manipulation planning
|
An abstract class which is loops over the different (gripper, handle) associations. More...


Public Member Functions | |
| def | __init__ (self) |
Main API | |
| 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... | |
Abstract methods of the algorithm | |
| 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 | |
| graspIsAllowed | |
| Reduces the problem combinatorial. More... | |
Internal variables | |
| 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... | |
An abstract class which is loops over the different (gripper, handle) associations.
The behaviour can be tuned by setting the callback functions:
Sketch of the algorithm
Let
be the set of grippers,
be the set of handles.A grasp is defined as a pair
.
Each state (excluding waypoint states) is defined by a set of grasps. Given a set of grasps, we define
The first node is defined by the empty set. The graph is built recursiveley as follows:
if the set of grasps defining the node is not allowed (method graspIsAllowed ), return.
Otherwise, for any pair
of available grippers and available handles,
to the current set of grasps (method makeState), | def manipulation.constraint_graph_factory.GraphFactoryAbstract.__init__ | ( | self | ) |
| def manipulation.constraint_graph_factory.GraphFactoryAbstract.environmentContacts | ( | self, | |
| envContacts | |||
| ) |
| envContacts | contact on the environment to be considered. |
| def manipulation.constraint_graph_factory.GraphFactoryAbstract.generate | ( | self | ) |
Go through the combinatorial defined by the grippers and handles and create the states and transitions.
| def manipulation.constraint_graph_factory.GraphFactoryAbstract.makeLoopTransition | ( | self, | |
| state | |||
| ) |
Create a loop transition.
| state | an object returned by makeState which represent the state |
| def manipulation.constraint_graph_factory.GraphFactoryAbstract.makeState | ( | self, | |
| grasps, | |||
| priority | |||
| ) |
Create a new state.
| grasps | a handle index for each gripper, as in GraphFactoryAbstract.graspIsAllowed. |
| priority | the state priority. |
| def manipulation.constraint_graph_factory.GraphFactoryAbstract.makeTransition | ( | self, | |
| stateFrom, | |||
| stateTo, | |||
| ig | |||
| ) |
| def manipulation.constraint_graph_factory.GraphFactoryAbstract.setGrippers | ( | self, | |
| grippers | |||
| ) |
| grippers | list of gripper names to be considered |
| def manipulation.constraint_graph_factory.GraphFactoryAbstract.setObjects | ( | self, | |
| objects, | |||
| handlesPerObjects, | |||
| contactsPerObjects | |||
| ) |
| objects | list of object names to be considered |
| handlesPerObjects | a list of list of handle names. |
| contactsPerObjects | a list of list of contact names. handlesPerObjects and contactsPerObjects must have one list for each object, in the same order. |
| def manipulation.constraint_graph_factory.GraphFactoryAbstract.setRules | ( | self, | |
| rules | |||
| ) |
Set the function graspIsAllowed.
| rules | a list of Rule objects |
| def manipulation.constraint_graph_factory.GraphFactoryAbstract.transitionIsAllowed | ( | self, | |
| stateFrom, | |||
| stateTo | |||
| ) |
Check whether a transition between two states is allowed.
| stateFrom,stateTo | states to connect |
| manipulation.constraint_graph_factory.GraphFactoryAbstract.contactsPerObjects |
See setObjects.
| manipulation.constraint_graph_factory.GraphFactoryAbstract.envContacts |
the names of contact on the environment
| manipulation.constraint_graph_factory.GraphFactoryAbstract.graspIsAllowed |
| manipulation.constraint_graph_factory.GraphFactoryAbstract.grippers |
the gripper names
| manipulation.constraint_graph_factory.GraphFactoryAbstract.handles |
the handle names
| manipulation.constraint_graph_factory.GraphFactoryAbstract.handlesPerObjects |
See setObjects.
| manipulation.constraint_graph_factory.GraphFactoryAbstract.objectFromHandle |
See setObjects.
| manipulation.constraint_graph_factory.GraphFactoryAbstract.objects |
the object names
| manipulation.constraint_graph_factory.GraphFactoryAbstract.states |
| manipulation.constraint_graph_factory.GraphFactoryAbstract.transitions |