10 #include "hrpsys/util/GLcamera.h" 11 #include "hrpsys/util/GLlink.h" 12 #include "hrpsys/util/GLbody.h" 13 #include "hrpsys/util/LogManager.h" 21 if (m_log->index()<0)
return;
26 for (
unsigned int i=0;
i<state.characterPositions.length();
i++){
27 const CharacterPosition& cpos = state.characterPositions[
i];
28 std::string cname(cpos.characterName);
34 for (
unsigned int j=0;
j<cpos.linkPositions.length();
j++){
35 const LinkPosition &lp = cpos.linkPositions[
j];
36 double T[] = {lp.R[0], lp.R[3], lp.R[6],0,
37 lp.R[1], lp.R[4], lp.R[7],0,
38 lp.R[2], lp.R[5], lp.R[8],0,
39 lp.p[0], lp.p[1], lp.p[2],1};
41 for (
int i=0;
i<4;
i++){
42 for (
int j=0;
j<4;
j++){
43 printf(
"%6.3f ", T[i*4+j]);
49 ((
GLlink *)glbody->
link(j))->setAbsTransform(T);
58 OpenHRP::WorldState state;
59 if (!lm->
state(state))
return;
64 const CollisionSequence &cs = state.collisions;
65 for (
unsigned int i=0;
i<cs.length();
i++){
66 const CollisionPointSequence& cps = cs[
i].points;
67 for (
unsigned int j=0;
j<cps.length();
j++){
68 glVertex3dv(cps[j].position);
69 for (
int k=0; k<3; k++){
70 e[k] = cps[
j].position[k] + cps[
j].normal[k]*(cps[
j].idepth*10+0.1);
void drawAdditionalLines()
def j(str, encoding="cp932")
Link * link(int index) const