1 #include <hrpCorba/ModelLoader.hh> 11 GLcamera(
int i_width,
int i_height,
double i_near,
double i_far,
double i_fovy);
12 const std::string&
name()
const;
34 GLlink(
const OpenHRP::LinkInfo &i_li, OpenHRP::BodyInfo_var i_binfo);
38 void setParent(
GLlink *i_parent);
40 void addChild(
GLlink *i_child);
42 void setQ(
double i_q);
48 GLcamera *findCamera(
const char *i_name);
55 std::vector<GLcamera *> m_cameras;
64 GLbody(OpenHRP::BodyInfo_var i_binfo);
68 void setPosture(
double *i_angles,
double *i_pos,
double *i_rpy);
72 GLcamera *findCamera(
const char *i_name);
81 void addBody(
GLbody *i_body);
82 unsigned int numBodies()
const;
84 void draw(
bool swap=
true);
85 void save(
const char *i_fname);
86 void capture(
unsigned char *o_image);
101 void mulTrans(
const double i_m1[16],
const double i_m2[16],
double o_m[16]);
std::vector< GLbody * > m_bodies
void save(int w, int h, const char *i_fname)
double * getAbsTransform()
const std::string & name() const
GLcamera * m_default_camera
std::vector< GLlink * > m_children
void setTransform(double i_trans[16])
GLcamera(int i_width, int i_height, double i_near, double i_far, double i_fovy, GLlink *i_link=NULL, int i_id=-1)
void getDepthOfLine(int i_row, float *o_depth)
void capture(int w, int h, unsigned char *o_buffer)
void computeAbsTransform(double o_trans[16])
void printMatrix(double mat[16])
void mulTrans(const double i_m1[16], const double i_m2[16], double o_m[16])
std::vector< GLlink * > m_links