RobWorkProject  23.9.11-
Public Member Functions | List of all members
ConstantForceManipulator Class Reference

class for adding a constant force to any body it controls More...

#include <ConstantForceManipulator.hpp>

Inherits BodyController.

Public Member Functions

 ConstantForceManipulator (const rw::math::Vector3D<> &force, std::vector< RWBody * > &bodies)
 constructor More...
 
virtual ~ConstantForceManipulator ()
 destructor
 
void addForces (rw::kinematics::State &state, double h)
 add external forces to the bodies that this BodyManipulator controls. More...
 
void reset (rw::kinematics::State &state)
 resets the state of the body controller to state More...
 
std::vector< RWBody * > & getBodies ()
 returns the list of bodies that are controlled More...
 
void setForce (const rw::math::Vector3D<> &f)
 sets the force
 
const rw::math::Vector3DgetForce ()
 gets the force
 

Detailed Description

class for adding a constant force to any body it controls

Constructor & Destructor Documentation

◆ ConstantForceManipulator()

ConstantForceManipulator ( const rw::math::Vector3D<> &  force,
std::vector< RWBody * > &  bodies 
)

constructor

Parameters
force
bodies

Member Function Documentation

◆ addForces()

void addForces ( rw::kinematics::State state,
double  h 
)
virtual

add external forces to the bodies that this BodyManipulator controls.

Implements BodyController.

◆ getBodies()

std::vector<RWBody*>& getBodies ( )
inline

returns the list of bodies that are controlled

Returns

◆ reset()

void reset ( rw::kinematics::State state)
inlinevirtual

resets the state of the body controller to state

Implements BodyController.


The documentation for this class was generated from the following file: