Skip to content
Snippets Groups Projects
Commit c03bf5b2 authored by Thomas Moulard's avatar Thomas Moulard
Browse files

Fix camera frame orientation.

parent 9ef84cbc
No related branches found
No related tags found
1 merge request!1[major][cpp] starting point to integrate pinocchio
......@@ -164,22 +164,18 @@ class Hrp2Laas (Hrp2):
[ 0., -1., 0., 0.],
[ 0., 0., 0., 1.]])
for camera in [cameraBottomLeftPosition, cameraBottomRightPosition,
cameraTopLeftPosition, cameraTopRightPosition]:
camera = camera * c1_M_c
self.AdditionalFrames.append(
("cameraBottomLeft",
matrixToTuple(cameraBottomLeftPosition), "gaze"))
matrixToTuple(c1_M_c * cameraBottomLeftPosition), "gaze"))
self.AdditionalFrames.append(
("cameraBottomRight",
matrixToTuple(cameraBottomRightPosition), "gaze"))
matrixToTuple(c1_M_c * cameraBottomRightPosition), "gaze"))
self.AdditionalFrames.append(
("cameraTopLeft",
matrixToTuple(cameraTopLeftPosition), "gaze"))
matrixToTuple(c1_M_c * cameraTopLeftPosition), "gaze"))
self.AdditionalFrames.append(
("cameraTopRight",
matrixToTuple(cameraTopRightPosition), "gaze"))
matrixToTuple(c1_M_c * cameraTopRightPosition), "gaze"))
Hrp2.__init__(self, name, modelDir, xmlDir, device, DynamicHrp2, tracer)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment