fix warnings

release/4.3a0
Varun Agrawal 2023-01-28 16:27:27 -05:00
parent f2f1bbaf8c
commit a1ed2f9866
1 changed files with 2 additions and 3 deletions

View File

@ -206,9 +206,8 @@ Values InitializePose3::computeOrientationsGradient(
// Return correct rotations
const Rot3& Rref = inverseRot.at(initialize::kAnchorKey); // This will be set to the identity as so far we included no prior
Values estimateRot;
for (const auto key_R : inverseRot) {
for (const auto& key_R : inverseRot) {
const Key& key = key_R.first;
const Rot3& Ri = key_R.second;
if (key != initialize::kAnchorKey) {
const Rot3& R = inverseRot.at(key);
if (setRefFrame)