Skip to content

Conversation

varunagrawal
Copy link
Contributor

  1. Fix the warnings due to type mismatch in newly introduced methods.
  2. Update docs for IMU factors clarifying what frame the measurements are in.

@varunagrawal varunagrawal added the quick-review Quick and easy PR to review label Apr 29, 2022
@varunagrawal varunagrawal requested a review from dellaert April 29, 2022 21:06
@varunagrawal varunagrawal self-assigned this Apr 29, 2022
@@ -365,7 +365,7 @@ boost::optional<Pose2> Pose2::Align(const Matrix& a, const Matrix& b) {
"Pose2:Align expects 2*N matrices of equal shape.");
}
Point2Pairs ab_pairs;
for (size_t j=0; j < a.cols(); j++) {
for (size_t j=0; j < size_t(a.cols()); j++) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the pr, I was also thinking of fixing them :-)
IMO, for C++ the C-type cast used here might be replaced by the more explicit static_cast.
That's in general. For these pair of warnings in particular I think it may make more sense to replace the loop counter variable from size_t to Eigen::Index, that should avoid casts at all and fix warnings, but haven't tried it yet...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great suggestion. I'll try them out and update!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Eigen::Index works great!

@varunagrawal varunagrawal requested a review from jlblancoc April 30, 2022 21:05
Copy link
Member

@jlblancoc jlblancoc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jlblancoc jlblancoc merged commit f4bcb11 into develop May 1, 2022
@jlblancoc jlblancoc deleted the fix/warnings branch May 1, 2022 07:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
quick-review Quick and easy PR to review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants