41 CVec position, quater;
53 text +=
printToString(
"<node pkg=\"tf\" type=\"static_transform_publisher\" name=\"%s\" args=\"%f %f %f %f %f %f %f %s %s 100\"/> \n",
55 position.x / 1000.0, position.y / 1000.0, position.z / 1000.0,
56 quater.x, quater.y, quater.z, quater.w,
63 text +=
"</launch>\n";
std::string printToString(const char *format,...)
virtual std::string getFrameAsXml()
virtual CMatrix getRelativeToBase()
Returns pose in the base (frame with no predecessor) frame.
std::vector< CFrame * > getFrames()
static void quaternionFromMatrix(const CMatrix &mat, CVec &quaternion)
Transforms a homogenous matrix into quaternion representation.
virtual void setFrame(CFrame *frame)
#define LOG_VERBOSE(format,...)
virtual CFrame * getBase()
virtual CMatrix getPose()
CFrame * getFrame(unsigned int id)
std::string generateOutput()