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

How to get a halfplane convex hull Eigen::MatrixX4d with fixed rows? #20

Open
zhangbaozhe opened this issue Jun 25, 2023 · 0 comments
Open

Comments

@zhangbaozhe
Copy link

Hi, I've been doing experiments based on this repo. I've learned to generate a series of convex hulls from your code is basically writing the code like this

std::vector<Eigen::Vector3d> pc;
VOXEL_MAP.getSurf(pc);
std::vector<Eigen::MatrixX4d> h_polys;
sfc_gen::convexCover(route, pc, 
                      VOXEL_MAP.getOrigin(), 
                      VOXEL_MAP.getCorner(), 
                      2.0, 2.0, h_polys);
sfc_gen::shortCut(h_polys);

I intend to use your code in my project to generate convex hulls, but it seems complicated for me to get around generating fixed-row matrices of convex hulls e.g., std::vector<Eigen::Matrix<double, 10, 4>>.

I know that in order to best achieve the max space of the safe flight corridor, the convex hull matrix should be dynamic in rows. But as in my project, I need to specify a fixed number of rows. Is there any way that I can achieve this goal?

Thanks.

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

1 participant