RobWorkProject
24.12.4-
|
A AssemblyControlStrategy that can be used specifically for cylindric peg in hole operations. More...
#include <CircularPiHControlStrategy.hpp>
Inherits AssemblyControlStrategy.
Public Types | |
typedef rw::core::Ptr< CircularPiHControlStrategy > | Ptr |
smart pointer type to this class | |
Public Types inherited from AssemblyControlStrategy | |
typedef rw::core::Ptr< AssemblyControlStrategy > | Ptr |
smart pointer type to this class | |
Public Member Functions | |
CircularPiHControlStrategy () | |
Create new control strategy. | |
virtual | ~CircularPiHControlStrategy () |
Destructor. | |
ControlState::Ptr | createState () const |
Create a new ControlState. This is usually done before calling update() the first time. More... | |
rw::core::Ptr< AssemblyControlResponse > | update (rw::core::Ptr< AssemblyParameterization > parameters, rw::core::Ptr< AssemblyState > real, rw::core::Ptr< AssemblyState > assumed, ControlState::Ptr controlState, rw::kinematics::State &state, rw::sensor::FTSensor *ftSensor, double time) const |
The main control loop. More... | |
rw::math::Transform3D | getApproach (rw::core::Ptr< AssemblyParameterization > parameters) |
Get the initial relative configuration between female and male objects (uses object TCP frames as given in the AssemblyTask). More... | |
std::string | getID () |
All implementations should provide a unique id, which will be used for serialization and in the factory. More... | |
std::string | getDescription () |
A textual description of the control strategy. More... | |
rw::core::Ptr< AssemblyParameterization > | createParameterization (const rw::core::Ptr< rw::core::PropertyMap > map) |
Construct a parameterization from a PropertyMap - this is required for deserialization and loading of a Assemblyassembly. More... | |
Public Member Functions inherited from AssemblyControlStrategy | |
AssemblyControlStrategy () | |
Create new control strategy. | |
virtual | ~AssemblyControlStrategy () |
Destructor. | |
virtual rw::core::Ptr< AssemblyControlResponse > | update (rw::core::Ptr< AssemblyParameterization > parameters, rw::core::Ptr< AssemblyState > real, rw::core::Ptr< AssemblyState > assumed, ControlState::Ptr controlState, rw::kinematics::State &state, rw::sensor::FTSensor *ftSensor, double time) const =0 |
The main control loop. More... | |
A AssemblyControlStrategy that can be used specifically for cylindric peg in hole operations.
This strategy mainly serves as a demonstration of how a strategy can be implemented.
|
virtual |
Construct a parameterization from a PropertyMap - this is required for deserialization and loading of a Assemblyassembly.
map | [in] the PropertyMap to construct a parameterization from. |
Implements AssemblyControlStrategy.
|
virtual |
Create a new ControlState. This is usually done before calling update() the first time.
Reimplemented from AssemblyControlStrategy.
|
virtual |
Get the initial relative configuration between female and male objects (uses object TCP frames as given in the AssemblyTask).
First when approach is reached, the update() control loop will start running.
parameters | [in] the parameters used for the current task. |
Implements AssemblyControlStrategy.
|
virtual |
A textual description of the control strategy.
Implements AssemblyControlStrategy.
|
virtual |
All implementations should provide a unique id, which will be used for serialization and in the factory.
Implements AssemblyControlStrategy.
rw::core::Ptr<AssemblyControlResponse> update | ( | rw::core::Ptr< AssemblyParameterization > | parameters, |
rw::core::Ptr< AssemblyState > | real, | ||
rw::core::Ptr< AssemblyState > | assumed, | ||
ControlState::Ptr | controlState, | ||
rw::kinematics::State & | state, | ||
rw::sensor::FTSensor * | ftSensor, | ||
double | time | ||
) | const |
The main control loop.
parameters | [in] the parameters used for the current task. |
real | [in] the real AssemblyState (can be NULL if not known). |
assumed | [in] the assumed AssemblyState (should be set by the AssemblyControlStrategy). |
controlState | [in] a ControlState previously created by the createState() function. |
state | [in] the real state of the system. |
ftSensor | [in] a pointer to the male force/torque sensor. |
time | [in] the current time. |