adding factor for point landmark to plane#82
Open
AhmedBaza1 wants to merge 2 commits into
Open
Conversation
g-ferrer
reviewed
Jun 9, 2026
|
|
||
| using namespace mrob; | ||
|
|
||
| Factor1PosePoint2Plane4d::Factor1PosePoint2Plane4d(const Mat31 &z_point_x, const Mat41 &z_plane, |
Collaborator
There was a problem hiding this comment.
you should initialize with node ids, same as other factors
g-ferrer
reviewed
Jun 9, 2026
|
|
||
| Factor1PosePoint2Plane4d::Factor1PosePoint2Plane4d(const Mat31 &z_point_x, const Mat41 &z_plane, | ||
| std::shared_ptr<Node> &node, const Mat1 &obsInf, Factor::robustFactorType robust_type): | ||
| Factor(1,6, robust_type), z_point_x_(z_point_x), z_plane_(z_plane), Tx_(Mat31::Zero()), r_(0.0), W_(obsInf) |
Collaborator
There was a problem hiding this comment.
dimension is incorrect, 6 is for poses, your is 3 (point) + 0 (EF plane)
g-ferrer
reviewed
Jun 9, 2026
| std::shared_ptr<Node> &node, const Mat1 &obsInf, Factor::robustFactorType robust_type): | ||
| Factor(1,6, robust_type), z_point_x_(z_point_x), z_plane_(z_plane), Tx_(Mat31::Zero()), r_(0.0), W_(obsInf) | ||
| { | ||
| matData_t normal_norm = z_plane_.head<3>().norm(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
the factor is for land mark to plane. I want to use get state from EF to get the planes from it to connect it this and that's how we can connect.