33 #include "LinearMath/btVector3.h"
38 tgDataLogger::tgDataLogger(std::string fileName) :
49 std::ofstream tgOutput;
50 tgOutput.open(m_fileName.c_str(), std::ios::app);
54 tgOutput << com[0] <<
","
64 std::ofstream tgOutput;
65 tgOutput.open(m_fileName.c_str(), std::ios::app);
76 const std::vector<abstractMarker>& markers = model.getMarkers();
78 const std::size_t n = 0;
79 for (std::size_t i = 0; i < n; i++)
81 std::ofstream tgOutput;
82 tgOutput.open(m_fileName.c_str(), std::ios::app);
84 btVector3 worldPos = markers[i].getWorldPosition();
86 tgOutput << worldPos[0] <<
","
88 << worldPos[2] <<
",";
virtual void render(const tgRod &rod) const
virtual const double getTension() const
Contains the definition of interface class tgDataLogger.
Markers for specific places on a tensegrity.
virtual btVector3 centerOfMass() const
Contains the definition of abstract base class tgSpringCableActuator. Assumes that the string is line...
virtual const double getRestLength() const
virtual double mass() const
Contains the definition of class tgRod.
virtual const double getCurrentLength() const
Definition of class tgBaseCPGNode.