58
Frame Joint::pose(const double& q)const
58
Frame Joint::pose(const double* q)const
63
return Frame(Rotation::RotX(scale*q+offset));
64
return Frame(Rotation::RotX(scale*q[0]+offset));
66
return Frame(Rotation::RotY(scale*q+offset));
68
return Frame(Rotation::RotY(scale*q[0]+offset));
69
return Frame(Rotation::RotZ(scale*q+offset));
72
return Frame(Rotation::RotZ(scale*q[0]+offset));
72
return Frame(Vector(scale*q+offset,0.0,0.0));
76
return Frame(Vector(scale*q[0]+offset,0.0,0.0));
75
return Frame(Vector(0.0,scale*q+offset,0.0));
80
return Frame(Vector(0.0,scale*q[0]+offset,0.0));
78
return Frame(Vector(0.0,0.0,scale*q+offset));
84
return Frame(Vector(0.0,0.0,scale*q[0]+offset));
81
87
// the joint angles represent a rotation vector expressed in the base frame of the joint
82
88
// (= the frame you get when there is no offset nor rotation)
83
return Frame(Rot(Vector((&q)[0], (&q)[1], (&q)[2])));
90
return Frame(Rot(Vector(q[0], q[1], q[2])));
86
93
// the joint angles represent a 2D rotation vector in the XZ planee of the base frame of the joint
87
94
// (= the frame you get when there is no offset nor rotation)
88
return Frame(Rot(Vector((&q)[0], 0.0, (&q)[1])));
96
return Frame(Rot(Vector(q[0], 0.0, q[1])));
91
99
return Frame::Identity();