29 #include "RPLengthController.h"
31 #include "../../../yamlbuilder/TensegrityModel.h"
47 throw std::invalid_argument(
"Negative length");
66 throw std::invalid_argument(
"dt is not positive");
69 for(
int k=0;k<actuators.size();k++){
71 std::cout << actuators[k]->getTension() <<
", ";
73 std::cout << std::endl;
virtual void onStep(TensegrityModel &subject, double dt)
virtual ~RPLengthController()
Utility class for class casting and filtering collections by type.
const std::vector< tgSpringCableActuator * > & getAllActuators() const
Contains the definition of class tgBasicActuator.
virtual void onSetup(TensegrityModel &subject)
RPLengthController(const double length=400)