Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于 line_to_pose 中线的形式 #10

Closed
gowanting opened this issue Dec 2, 2021 · 2 comments
Closed

关于 line_to_pose 中线的形式 #10

gowanting opened this issue Dec 2, 2021 · 2 comments

Comments

@gowanting
Copy link

Vector6d line_to_pose(Vector6d line_w, Eigen::Matrix3d Rcw, Eigen::Vector3d tcw) {
    Vector6d line_c;

    Vector3d cp_w, dv_w;
    cp_w = line_w.head(3);
    dv_w = line_w.tail(3);

    Vector3d cp_c = point_to_pose( Rcw, tcw, cp_w );
    Vector3d dv_c = Rcw* dv_w;

    line_c.head(3) = cp_c;
    line_c.tail(3) = dv_c;

    return line_c;
}

贺博好, 想问一下这里的 line 是用的什么形式呢? 看起来并不是 pluecker 坐标系, 因为与库中 plk_to_pose 描写的转换关系不太一样.

感谢~

@HeYijia
Copy link
Owner

HeYijia commented Dec 2, 2021

前三维是一个三维点(在直线上),后三维是沿着直线的方向向量。

@gowanting
Copy link
Author

明白啦, 谢谢~

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

No branches or pull requests

2 participants