Skip to content

Commit

Permalink
Adapt Z distance to reach
Browse files Browse the repository at this point in the history
  • Loading branch information
fspindle committed Sep 18, 2024
1 parent a710e8b commit e356fae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion example/servo-afma6/servoAfma6AprilTagIBVS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ int main(int argc, char **argv)
vpHomogeneousMatrix cd_M_c, c_M_o, o_M_o;

// Desired pose used to compute the desired features
vpHomogeneousMatrix cd_M_o(vpTranslationVector(0, 0, opt_tagSize * 3), // 3 times tag with along camera z axis
vpHomogeneousMatrix cd_M_o(vpTranslationVector(0, 0, opt_tagSize * 3.5), // 3.5 times tag with along camera z axis
vpThetaUVector(vpMath::rad(10), vpMath::rad(3), vpMath::rad(5)));
if (!detector.isZAlignedWithCameraAxis()) {
vpHomogeneousMatrix oprim_M_o = { 1, 0, 0, 0,
Expand Down
2 changes: 1 addition & 1 deletion example/servo-afma6/servoAfma6AprilTagPBVS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ int main(int argc, char **argv)
vpHomogeneousMatrix cd_M_c, c_M_o, o_M_o;

// Desired pose to reach
vpHomogeneousMatrix cd_M_o(vpTranslationVector(0, 0, opt_tagSize * 3), // 3 times tag with along camera z axis
vpHomogeneousMatrix cd_M_o(vpTranslationVector(0, 0, opt_tagSize * 3.5), // 3.5 times tag with along camera z axis
vpThetaUVector(vpMath::rad(10), vpMath::rad(3), vpMath::rad(5)));
if (!detector.isZAlignedWithCameraAxis()) {
vpHomogeneousMatrix oprim_M_o = { 1, 0, 0, 0,
Expand Down

0 comments on commit e356fae

Please sign in to comment.