Skip to content

Commit

Permalink
Use pose multiplication instead of subtraction (#1039)
Browse files Browse the repository at this point in the history
Part of gz-math#60.

Signed-off-by: Steve Peters <scpeters@openrobotics.org>
  • Loading branch information
scpeters authored Jun 6, 2022
1 parent 26e045d commit ecb067f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion usd/src/usd_parser/USDSensors.cc
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ namespace sdf
camera.SetLensFocalLength(focalLength);
// Camera is Y up axis, rotate the camera to match with Ignition
gz::math::Pose3d poseCamera(0, 0, 0, IGN_PI_2, 0, -IGN_PI_2);
sensor.SetRawPose(pose * -poseCamera);
sensor.SetRawPose(pose * poseCamera.Inverse());
camera.SetNearClip(clippingRange[0]);
camera.SetFarClip(clippingRange[1]);
camera.SetImageWidth(640);
Expand Down

0 comments on commit ecb067f

Please sign in to comment.