![]()  | 
  
    RobWorkProject
    23.9.11-
    
   | 
 
base class for dynamic devices that has dynamic state values such as velocity and acceleration. More...
#include <DynamicDevice.hpp>
Inherits Stateless.
Inherited by KinematicDevice, RigidDevice, and SuctionCup.
Public Types | |
| typedef rw::core::Ptr< DynamicDevice > | Ptr | 
| Smart pointer type for a DynamicDevice.  | |
  Public Types inherited from Stateless | |
| typedef rw::core::Ptr< Stateless > | Ptr | 
| Smart pointer type for Stateless.  | |
Public Member Functions | |
| virtual | ~DynamicDevice () | 
| Destructor.  | |
| virtual rw::math::Q | getQ (const rw::kinematics::State &state) | 
| gets the position  | |
| virtual void | setQ (const rw::math::Q &q, rw::kinematics::State &state) | 
| Set the position of the joints.  More... | |
| rw::models::Device & | getModel () | 
| gets the kinematic model of the DynamicDevice.  | |
| rw::models::Device::Ptr | getKinematicModel () | 
| Get the kinematic model of the device.  More... | |
| dynamics::Body::Ptr | getBase () | 
| Get the base of the device.  More... | |
| virtual rw::math::Q | getJointVelocities (const rw::kinematics::State &state)=0 | 
| get the current velocities of all joints  More... | |
| virtual void | setJointVelocities (const rw::math::Q &vel, rw::kinematics::State &state)=0 | 
| Set the velocities of the joints.  More... | |
| virtual rw::math::Q | getVelocity (const rw::kinematics::State &state) | 
| deprecated  More... | |
| virtual void | setVelocity (const rw::math::Q &vel, rw::kinematics::State &state) | 
| Set the velocities of the joints.  More... | |
| virtual void | setMotorVelocityTargets (const rw::math::Q &vel, rw::kinematics::State &state) | 
| Set motor targets for the joints.  More... | |
| virtual const std::vector< Body::Ptr > & | getLinks ()=0 | 
| Get all links in the dynamic device.  More... | |
| const std::string & | getName () const | 
| Get the name of the dynamic device.  More... | |
  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... | |
Protected Member Functions | |
| DynamicDevice (dynamics::Body::Ptr base, rw::models::Device::Ptr dev) | |
| Construct new dynamic device.  More... | |
  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 | |
| rw::models::Device::Ptr | _dev | 
| The kinematic model.  | |
| dynamics::Body::Ptr | _base | 
| The base of the device.  | |
  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.  | |
base class for dynamic devices that has dynamic state values such as velocity and acceleration.
      
  | 
  inlineprotected | 
Construct new dynamic device.
| base | [in] base of the device. | 
| dev | [in] the kinematic model. | 
      
  | 
  inline | 
Get the base of the device.
      
  | 
  pure virtual | 
get the current velocities of all joints
| state | [in] the state | 
Implemented in SuctionCup, RigidDevice, and KinematicDevice.
      
  | 
  inline | 
Get the kinematic model of the device.
      
  | 
  pure virtual | 
Get all links in the dynamic device.
Implemented in SuctionCup, RigidDevice, and KinematicDevice.
      
  | 
  inline | 
Get the name of the dynamic device.
      
  | 
  inlinevirtual | 
deprecated
get the current velocities of all joints
| state | [in] the state | 
      
  | 
  pure virtual | 
Set the velocities of the joints.
| vel | [in] the joint velocities. | 
| state | [out] the state with updated velocities. | 
Implemented in SuctionCup, KinematicDevice, and RigidDevice.
      
  | 
  inlinevirtual | 
Set motor targets for the joints.
| vel | [in] velocity targets. | 
| state | [out] the state with new velocity targets. | 
Reimplemented in RigidDevice.
      
  | 
  inlinevirtual | 
Set the position of the joints.
| q | [in] the positions. | 
| state | [out] the state with new positions. | 
      
  | 
  inlinevirtual | 
Set the velocities of the joints.
| vel | [in] the joint velocities. | 
| state | [out] the state with updated velocities. |