42 #include "LinearMath/btVector3.h"
53 throw std::invalid_argument(
"Pointer to pSCA is NULL inside tgSpringCableActuatorSensor.");
77 tgCast::cast<tgSenseable, tgSpringCableActuator>(
m_pSens);
84 std::vector<std::string> headings;
88 tgTags m_tags = m_pSCA->getTags();
101 std::string prefix =
"SCA(";
104 headings.push_back( prefix + m_tags +
").RestLen" );
105 headings.push_back( prefix + m_tags +
").CurrLen" );
106 headings.push_back( prefix + m_tags +
").Tension" );
119 tgCast::cast<tgSenseable, tgSpringCableActuator>(
m_pSens);
123 assert( m_pSCA != 0);
126 std::vector<std::string> sensordata;
129 std::stringstream ss;
133 sensordata.push_back( ss.str() );
139 sensordata.push_back( ss.str() );
144 sensordata.push_back( ss.str() );
Constains definition of concrete class tgSpringCableActuatorSensor.
virtual std::vector< std::string > getSensorDataHeadings()
virtual const double getTension() const
Utility class for class casting and filtering collections by type.
tgSpringCableActuatorSensor(tgSpringCableActuator *pSCA)
virtual std::vector< std::string > getSensorData()
virtual const double getRestLength() const
virtual const double getCurrentLength() const
virtual ~tgSpringCableActuatorSensor()
Constains the implementation of mixin class tgSenseable.