![]() |
RobWorkProject
23.9.11-
|
Interface to allow modelling of different types of controllers. A controller is an instance that takes an input manipulates it to an output that in effect controls something. As such controllers vary greatly and have only little in common. More...
#include <ControllerModel.hpp>
Inherits Stateless.
Public Types | |
| typedef rw::core::Ptr< ControllerModel > | Ptr |
| smart pointer type | |
Public Types inherited from Stateless | |
| typedef rw::core::Ptr< Stateless > | Ptr |
| Smart pointer type for Stateless. | |
Public Member Functions | |
| ControllerModel (const std::string &name, rw::core::Ptr< rw::kinematics::Frame > frame) | |
| constructor More... | |
| ControllerModel (const std::string &name, rw::core::Ptr< rw::kinematics::Frame > frame, const std::string &description) | |
| constructor More... | |
| virtual | ~ControllerModel () |
| destructor | |
| void | setName (const std::string &name) |
| sets the name of this controllermodel More... | |
| void | setDescription (const std::string &description) |
| sets the description of this controllermodel More... | |
| const std::string & | getName () const |
| returns the name of this controllermodel More... | |
| const std::string & | getDescription () const |
| returns a description of this controllermodel More... | |
| rw::kinematics::Frame * | getFrame () const |
| The frame to which the controllermodel is attached. More... | |
| virtual void | attachTo (rw::core::Ptr< rw::kinematics::Frame > frame) |
| Sets the frame to which the controllermodel should be attached. More... | |
| rw::core::PropertyMap & | getPropertyMap () |
| gets the propertymap of this controllermodel | |
| const rw::core::PropertyMap & | getPropertyMap () const |
| gets the propertymap of this controllermodel | |
Public Member Functions inherited from Stateless | |
| virtual | ~Stateless () |
| destructor | |
| virtual void | registerIn (State &state) |
| initialize this stateless data to a specific state More... | |
| virtual void | registerIn (StateStructure::Ptr state) |
| register this stateless object in a statestructure. | |
| virtual void | unregister () |
| unregisters all state data of this stateless object | |
| StateStructure::Ptr | getStateStructure () |
| Get the state structure. More... | |
| const StateStructure::Ptr | getStateStructure () const |
| Get the state structure. More... | |
| bool | isRegistered () |
| Check if object has registered its state. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from Stateless | |
| Stateless () | |
| constructor | |
| template<class T > | |
| void | add (StatelessData< T > &data) |
| implementations of sensor should add all their stateless data on initialization | |
| void | add (StateData *data) |
| Add data. More... | |
| void | add (rw::core::Ptr< StateData > data) |
| implementations of sensor should add all their state data on initialization | |
Protected Attributes inherited from Stateless | |
| bool | _registered |
| True if object has registered its state. | |
| std::vector< rw::core::Ptr< StateData > > | _datas |
| Data. | |
| StateStructure::Ptr | _stateStruct |
| The state structure. | |
Interface to allow modelling of different types of controllers. A controller is an instance that takes an input manipulates it to an output that in effect controls something. As such controllers vary greatly and have only little in common.
| ControllerModel | ( | const std::string & | name, |
| rw::core::Ptr< rw::kinematics::Frame > | frame | ||
| ) |
constructor
| name | [in] the name of this controllermodel |
| frame | [in] the frame to which this controller is attached/associated. |
| ControllerModel | ( | const std::string & | name, |
| rw::core::Ptr< rw::kinematics::Frame > | frame, | ||
| const std::string & | description | ||
| ) |
constructor
| name | [in] the name of this controllermodel |
| frame | [in] the frame to which this controller is attached/associated. |
| description | [in] description of the controller |
|
inlinevirtual |
Sets the frame to which the controllermodel should be attached.
| frame | The frame, which can be NULL |
|
inline |
returns a description of this controllermodel
|
inline |
The frame to which the controllermodel is attached.
The frame can be NULL.
|
inline |
returns the name of this controllermodel
|
inline |
sets the description of this controllermodel
| description | [in] description of this controllermodel |
|
inline |
sets the name of this controllermodel
| name | [in] name of this controllermodel |