31 #include "RPLengthController.h"
33 #include "../../../yamlbuilder/TensegrityModel.h"
49 throw std::invalid_argument(
"Negative length");
67 throw std::invalid_argument(
"dt is not positive");
70 for (
int k = 0; k < (actuators.size()-1); k++) {
72 std::cout << actuators[k] -> getTension() <<
", ";
74 std::cout << actuators[actuators.size()-1] -> getTension() << 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)