GLcoordinates.h
Go to the documentation of this file.
1 #ifndef __GLCOORDINATES_H__
2 #define __GLCOORDINATES_H__
3 
4 #include <hrpUtil/Eigen3d.h>
5 
7 {
8 public:
10  void setTransform(const double i_trans[12]);
11  double *getTransform() { return m_trans; }
13  void setPosition(double x, double y, double z);
14  void getPosition(double& x, double& y, double& z);
15  template<class T>
16  void setPosition(const T &p){
17  m_trans[12] = p[0]; m_trans[13] = p[1]; m_trans[14] = p[2];
18  }
19  void setRotation(double r, double p, double y);
20  void setRotation(double ax, double ay, double az, double th);
22  void setRotation(const hrp::Matrix33 &R);
23  void setRotation(const double *R);
24  void getRotation(hrp::Matrix33 &R);
25 protected:
26  double m_trans[16];
27 };
28 #endif
hrp::Matrix33 getRotation()
void setRotation(double r, double p, double y)
double * getTransform()
Definition: GLcoordinates.h:11
void setPosition(const T &p)
Definition: GLcoordinates.h:16
void setTransform(const double i_trans[12])
Eigen::Vector3d Vector3
hrp::Vector3 getPosition()
Eigen::Matrix3d Matrix33
void setPosition(double x, double y, double z)
double m_trans[16]
Definition: GLcoordinates.h:26


hrpsys
Author(s): AIST, Fumio Kanehiro
autogenerated on Thu May 6 2021 02:41:50