35 #include "LinearMath/btQuickprof.h"
63 throw std::invalid_argument(
"Pointer to btVector3 direction is NULL, inside constructor for tgUnidirComprSprActuator Config.");
68 std::cout <<
"tgUnidirComprSprActuator Config constructor. Direction is:" << std::endl;
69 std::cout <<
"(" <<
direction->x() <<
",";
71 std::cout <<
direction->z() <<
")" << std::endl;
77 void tgUnidirComprSprActuator::constructorAux()
81 throw std::invalid_argument(
"Pointer to tgBulletUnidirComprSpr is NULL.");
87 throw std::invalid_argument(
"Pointer to btVector3 direction is NULL, inside constructor aux for tgUnidirComprSprActuator.");
92 std::cout <<
"tgUnidirComprSprActuator constructor aux. Direction is:" << std::endl;
128 std::cout <<
"Destroying tgUnidirComprSprActuator" << std::endl;
129 std::cout <<
"This class does not delete m_compressionSpring." << std::endl;
154 #ifndef BT_NO_PROFILE
155 BT_PROFILE(
"tgUnidirComprSprActuator::step");
156 #endif //BT_NO_PROFILE
159 throw std::invalid_argument(
"dt is not positive.");
176 #ifndef BT_NO_PROFILE
177 BT_PROFILE(
"tgUnidirComprSprActuator::onVisit");
178 #endif //BT_NO_PROFILE
183 bool tgUnidirComprSprActuator::invariant()
const
virtual void step(double dt)
virtual void setup(tgWorld &world)
Definitions of class tgBulletUnidirComprSpr, a version of tgBulletCompressionSpring that only applies...
tgBulletCompressionSpring * m_compressionSpring
virtual void step(double dt)
virtual void onVisit(const tgModelVisitor &r) const
Contains the definition of class tgUnidirComprSprActuator. This class assumes a linear spring...
virtual void step(double dt)
virtual void render(const tgRod &rod) const
Contains the definition of interface class tgModelVisitor.
Config(bool iFEA=false, double s=1000.0, double d=10.0, double rL=0.0, bool moveCPA=true, bool moveCPB=true, btVector3 *dir=(new btVector3(0, 1, 0)))
virtual ~tgUnidirComprSprActuator()
Contains the definition of class tgWorld $Id$.
tgUnidirComprSprActuator(tgBulletUnidirComprSpr *compressionSpring, const tgTags &tags, tgUnidirComprSprActuator::Config &config)
virtual void setup(tgWorld &world)
void notifyStep(double dt)
tgUnidirComprSprActuator::Config m_config