Skip to content

adding factor for point landmark to plane#82

Open
AhmedBaza1 wants to merge 2 commits into
masterfrom
4review
Open

adding factor for point landmark to plane#82
AhmedBaza1 wants to merge 2 commits into
masterfrom
4review

Conversation

@AhmedBaza1

Copy link
Copy Markdown
Collaborator

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.


using namespace mrob;

Factor1PosePoint2Plane4d::Factor1PosePoint2Plane4d(const Mat31 &z_point_x, const Mat41 &z_plane,

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

you should initialize with node ids, same as other factors

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

done


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)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

dimension is incorrect, 6 is for poses, your is 3 (point) + 0 (EF plane)

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

done

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();

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

this should go away

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants