43 #include "LinearMath/btVector3.h"
54 throw std::invalid_argument(
"Pointer to pRod is NULL inside tgRodSensor.");
77 tgRod* m_pRod = tgCast::cast<tgSenseable, tgRod>(
m_pSens);
83 std::vector<std::string> headings;
86 tgTags m_tags = m_pRod->getTags();
99 std::string prefix =
"rod(";
106 headings.push_back( prefix + m_tags +
").X" );
107 headings.push_back( prefix + m_tags +
").Y" );
108 headings.push_back( prefix + m_tags +
").Z" );
109 headings.push_back( prefix + m_tags +
").Euler1" );
110 headings.push_back( prefix + m_tags +
").Euler2" );
111 headings.push_back( prefix + m_tags +
").Euler3" );
112 headings.push_back( prefix + m_tags +
").mass" );
123 tgRod* m_pRod = tgCast::cast<tgSenseable, tgRod>(
m_pSens);
126 assert( m_pRod != 0);
133 std::vector<std::string> sensordata;
150 std::stringstream ss;
154 sensordata.push_back( ss.str() );
160 sensordata.push_back( ss.str() );
164 sensordata.push_back( ss.str() );
168 sensordata.push_back( ss.str() );
172 sensordata.push_back( ss.str() );
176 sensordata.push_back( ss.str() );
179 ss << m_pRod->
mass();
180 sensordata.push_back( ss.str() );
virtual std::vector< std::string > getSensorDataHeadings()
Utility class for class casting and filtering collections by type.
virtual btVector3 centerOfMass() const
Constains definition of concrete class tgRodSensor.
virtual btVector3 orientation() const
virtual double mass() const
virtual std::vector< std::string > getSensorData()
Constains the implementation of mixin class tgSenseable.