RobWorkProject
24.12.4-
|
Interface for a parameterization that can be used by a AssemblyControlStrategy. More...
#include <AssemblyParameterization.hpp>
Inherited by CircularPiHParameterization, PiHParameterization, and SpiralParameterization.
Public Types | |
typedef rw::core::Ptr< AssemblyParameterization > | Ptr |
smart pointer type to this class | |
Public Member Functions | |
AssemblyParameterization () | |
Construct an empty parameterization. | |
AssemblyParameterization (rw::core::Ptr< rw::core::PropertyMap > pmap) | |
Construct a parameterization from a PropertyMap. More... | |
virtual | ~AssemblyParameterization () |
Destructor. | |
virtual rw::core::Ptr< rw::core::PropertyMap > | toPropertyMap () const |
Store the parameterization in a PropertyMap. More... | |
virtual AssemblyParameterization::Ptr | clone () const |
Clone the parameterization. More... | |
virtual AssemblyParameterization::Ptr | make (rw::core::Ptr< rw::core::PropertyMap > pmap) const |
Construct a parameterization of same type from a PropertyMap. More... | |
virtual void | reset (rw::core::Ptr< rw::core::PropertyMap > pmap) |
Reset the parameters by taking new parameters from a PropertyMap. More... | |
Protected Attributes | |
rw::core::Ptr< rw::core::PropertyMap > | _pmap |
The PropertyMap. | |
Interface for a parameterization that can be used by a AssemblyControlStrategy.
Each AssemblyControlStrategy will typically derive its own AssemblyParameterization that includes the parameters necessary to specify the assembly operation when using that specific strategy.
By deriving from this class, the parameterization can be stored and restored via a PropertyMap structure. This is mainly used as a way to extend the assembly assembly specification with additional data, while maintaining the ability to serialize, load and save the AssemblyTask. Derived classes should override the clone(), make(), reset() and toPropertyMap() functions.
Notice that this is also a concrete class, allowing the user to create a parameterization that is always empty, or create a parameterization based on a custom PropertyMap. The latter is especially useful if scripting interfaces are used, where subclassing is not possible.
Construct a parameterization from a PropertyMap.
pmap | [in] a PropertyMap. |
|
virtual |
Clone the parameterization.
Reimplemented in SpiralParameterization, PiHParameterization, and CircularPiHParameterization.
|
virtual |
Construct a parameterization of same type from a PropertyMap.
pmap | [in] a PropertyMap. |
Reimplemented in CircularPiHParameterization.
|
virtual |
Reset the parameters by taking new parameters from a PropertyMap.
pmap | [in] a PropertyMap. |
Reimplemented in SpiralParameterization, PiHParameterization, and CircularPiHParameterization.
|
virtual |
Store the parameterization in a PropertyMap.
Reimplemented in SpiralParameterization, PiHParameterization, and CircularPiHParameterization.