make get methods const. Ticket #3273

This commit is contained in:
wim 2009-11-16 19:49:30 +00:00
parent 848abcdd20
commit b5c98fddfd
1 changed files with 2 additions and 2 deletions

View File

@ -86,14 +86,14 @@ class Rotation
public:
Rotation(double _x,double _y, double _z, double _w) {this->x=_x;this->y=_y;this->z=_z;this->w=_w;};
Rotation() {this->clear();};
void getQuaternion(double &quat_x,double &quat_y,double &quat_z, double &quat_w)
void getQuaternion(double &quat_x,double &quat_y,double &quat_z, double &quat_w) const
{
quat_x = this->x;
quat_y = this->y;
quat_z = this->z;
quat_w = this->w;
};
void getRPY(double &roll,double &pitch,double &yaw)
void getRPY(double &roll,double &pitch,double &yaw) const
{
double sqw;
double sqx;