How can I get the current coordinate position of the robot? I have noticed the function: inline Real GetX() const in the CPositionalEntity class. But when I used it, there are some errors: Segmentation fault (core dumped).
I have
Code: Select all
CPositionalEntity* centity;
// Real cur_y = cquaternion.GetY();
CVector3 position = centity->GetPosition();
Real cur_x = position.GetX();
// CFootBotEntity* m_pcFootBot;
std::cout<<"ID:"<<ID<<"POSITION:"<<position<<"\n";