-
Notifications
You must be signed in to change notification settings - Fork 497
wrong Pose returned by Camera::GetWorldRotation() #1087
Comments
Original comment by John Hsu (Bitbucket: hsu, GitHub: hsu). I just tried by adding code below to gazebo_2.2 branch:
and running
got some non-zero values
|
Original comment by Eric Chuang (Bitbucket: eric4337). Sorry for my unspecific question. Was your Camera attached to Model? My Camera is created from SDF, under . What i want is that i can get the "World Pose" of Camera directly, since the frame of Model & Camera are possibly not aligned. |
Original comment by John Hsu (Bitbucket: hsu, GitHub: hsu). I added a unit test here: you can compile from branch
The test fails, indicating there is an issue with Thanks for the bug report. |
Original comment by John Hsu (Bitbucket: hsu, GitHub: hsu). Will issue #1098 make it easier for users to submit a patch similar to this test patch in the future? |
Original comment by Ian Chen (Bitbucket: Ian Chen, GitHub: iche033). regarding the test: line 376
since camera(0) has an offset pose of 0 1 0 0 0 0, so shouldn't the correct camera world pose be
then the EXPECT statement won't evaluate to true right? |
Original comment by Steve Peters (Bitbucket: Steven Peters, GitHub: scpeters). Shouldn't the pose addition arguments be reversed as: |
Original comment by Ian Chen (Bitbucket: Ian Chen, GitHub: iche033). I made some changes and the test now pass Here is a diff showing my changes on top of yours |
Original comment by Steve Peters (Bitbucket: Steven Peters, GitHub: scpeters).
|
Original comment by Nate Koenig (Bitbucket: Nathan Koenig).
|
Original report (archived issue) by Eric Chuang (Bitbucket: eric4337).
the math::Quaternion returned by Camera::GetWorldRotation() are always '0 0 0'.
no matter what my Camera pose is, it always return '0 0 0'
The text was updated successfully, but these errors were encountered: