pymoveit_mtc.stages.Place¶
- class Place(self: pymoveit_mtc.stages.Place, place_generator: pymoveit_mtc.core.Stage, name: str = 'place')¶
Bases:
SerialContainer
The Place stage is a specialization of the PickPlaceBase class, which wraps the pipeline to pick or place an object with a given end effector.
Placing consist of the inverse order of stages:
Place down along a given direction
Detach the object
Linearly retract end effector
The end effector postures corresponding to pre-grasp and grasp as well as the end effector’s Cartesian pose needs to be provided by an external grasp stage.
Take a look at the Pick and Place Tutorial for an in-depth look, as well as the How-To Guide for a minimal implementation of a task hierarchy that makes use of the
Place
stage.Methods
Insert a stage at the end of the current children list
Remove all stages from the container
Initialize the stage once before planning.
Insert a stage before the given index into the children list
Overloaded function.
Reset the Stage.
Overloaded function.
Overloaded function.
The retract motion towards the final state is represented by a Twist message.
Attributes
The End effector name
Name of the end effector frame
Joint model group of the end effector
Joint model group of the eef's parent
Failed Solutions of the stage (read-only)
set of properties forwarded from input to output InterfaceState
Namespace for any markers that are associated to the stage
name of the stage displayed e.g.
Name of object to pick
PropertyMap of the stage (read-only)
Successful Solutions of the stage (read-only)
Maximally allowed time [s] per computation step
- class PropertyInitializerSource(self: pymoveit_mtc.core.Stage.PropertyInitializerSource, value: int)¶
Bases:
pybind11_object
OR-combinable flags defining a source to initialize a specific property from. Used in pymoveit_mtc.core.PropertyMap
configureInitFrom()
.Members:
PARENT : Inherit properties from parent stage
INTERFACE : Inherit properties from the input InterfaceState
- property name¶
- __getitem__(*args, **kwargs)¶
Overloaded function.
__getitem__(self: pymoveit_mtc.core.ContainerBase, arg0: str) -> pymoveit_mtc.core.Stage
__getitem__(self: pymoveit_mtc.core.ContainerBase, arg0: int) -> pymoveit_mtc.core.Stage
- __iter__(self: pymoveit_mtc.core.ContainerBase) Iterator[pymoveit_mtc.core.Stage] ¶
- __len__(self: pymoveit_mtc.core.ContainerBase) int ¶
- add(self: pymoveit_mtc.core.ContainerBase, *args) None ¶
Insert a stage at the end of the current children list
- clear(self: pymoveit_mtc.core.ContainerBase) None ¶
Remove all stages from the container
- property forwarded_properties¶
set of properties forwarded from input to output InterfaceState
- Type:
- init(self: pymoveit_mtc.core.Stage, robot_model: moveit::core::RobotModel) None ¶
Initialize the stage once before planning. Will setup properties configured for initialization from parent.
- insert(self: pymoveit_mtc.core.ContainerBase, stage: pymoveit_mtc.core.Stage, before: int = -1) None ¶
Insert a stage before the given index into the children list
- property properties¶
PropertyMap of the stage (read-only)
- Type:
- remove(*args, **kwargs)¶
Overloaded function.
remove(self: pymoveit_mtc.core.ContainerBase, pos: int) -> pymoveit_mtc.core.Stage
Remove child stage by index
remove(self: pymoveit_mtc.core.ContainerBase, child: pymoveit_mtc.core.Stage) -> pymoveit_mtc.core.Stage
Remove child stage by instance
- reset(self: pymoveit_mtc.core.Stage) None ¶
Reset the Stage. Clears all solutions, interfaces and inherited properties
- setCostTerm(*args, **kwargs)¶
Overloaded function.
setCostTerm(self: pymoveit_mtc.core.Stage, arg0: pymoveit_mtc.core.CostTerm) -> None
Specify a CostTerm for calculation of stage costs
setCostTerm(self: pymoveit_mtc.core.Stage, arg0: Callable[[pymoveit_mtc.core.SubTrajectory, str], float]) -> None
Specify a function to calculate trajectory costs
setCostTerm(self: pymoveit_mtc.core.Stage, arg0: Callable[[pymoveit_mtc.core.SubTrajectory], float]) -> None
Specify a function to calculate trajectory costs
- setPlaceMotion(*args, **kwargs)¶
Overloaded function.
setPlaceMotion(self: pymoveit_mtc.stages.Place, motion: geometry_msgs::TwistStamped_<std::allocator<void> >, min_distance: float, max_distance: float) -> None
The object-placing motion towards the final state is represented by a twist message. Additionally specify the minimum and maximum allowed distances to travel.
setPlaceMotion(self: pymoveit_mtc.stages.Place, joints: dict[str, float]) -> None
The placing motion to the final state is represented by its destination as joint-value pairs
- setRetractMotion(self: pymoveit_mtc.stages.Place, motion: geometry_msgs::TwistStamped_<std::allocator<void> >, min_distance: float, max_distance: float) None ¶
The retract motion towards the final state is represented by a Twist message. Additionally specify the minimum and maximum allowed distances to travel.
- property solutions¶
Successful Solutions of the stage (read-only)