Skip to content

Linergbd loadtemplates fix #3946

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

truhoang
Copy link
Contributor

Fix for #3887

Copy link
Member

@kunaltyagi kunaltyagi left a comment

Choose a reason for hiding this comment

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

Writing to filesystem doesn't seem necessary in this case. Why did you choose this over reading the body in binary format?

@truhoang
Copy link
Contributor Author

This seems like a 1 time cost at the beginning of the code and avoid any issue with parsing the header. Another is we can avoid loading the binary into PointCloud2 then to PointCloud<PointT> when loading the PCD portions of the LTM

@truhoang
Copy link
Contributor Author

macOS builds are failing with the same errors as #2601. I thought #3736 addressed these?

@kunaltyagi
Copy link
Member

It's a new issue with Apple every month. Don't worry about MacOS CI for now

@kunaltyagi kunaltyagi added module: recognition needs: feedback Specify why not closed/merged yet labels Apr 24, 2020
@kunaltyagi
Copy link
Member

@PointCloudLibrary/maintainers feedback needed on replacement of reading tar with extracting it externally and reading the extracted files.

@SergioRAgostinho
Copy link
Member

@PointCloudLibrary/maintainers feedback needed on replacement of reading tar with extracting it externally and reading the extracted files.

The fix you're providing is relying on the existence of tar as a command line tool. Windows users will love you (sarcasm). If you want to side-step tar extraction, the proper way to handle it is to accept loading PCD files individually additionally to the .ltm file, but you should not erase the current implementation which tries to extract the tar contents and (supposedly should) works cross platform.

@truhoang
Copy link
Contributor Author

@SergioRAgostinho that depends on what's included in the LTM. Based on the original author's code, I deduced the LTM contains both the SQMMT and PCDs of the object point clouds. Without extract the LTM using tar how can we get access to the PCD files?

@SergioRAgostinho
Copy link
Member

@SergioRAgostinho that depends on what's included in the LTM. Based on the original author's code, I deduced the LTM contains both the SQMMT and PCDs of the object point clouds.

Then accepts a vector of paths to both types of files as an argument.

Without extract the LTM using tar how can we get access to the PCD files?

I am asking to implement a method which takes a vector of PCD and SQMMT files as an overload/alternative to the method which tries to read them directly from a tar archive. This allows the user to use tar or other unarchiving tool to extract the files as a first step before executing any code. Once the files are out pass all the files into your application as command line arguments.

It won't fix the buggy tar reading feature but it will be a solution that is cross platform and leaves the current code intact so that other users can actually try to properly fix it at some point.

@truhoang
Copy link
Contributor Author

OK, I'll revise my fix and leave the old implementation as is

@kunaltyagi kunaltyagi added the needs: author reply Specify why not closed/merged yet label May 20, 2020
@kunaltyagi
Copy link
Member

Are you working on this? Your last statement was a big ambiguous wrt the status of the PR

@kunaltyagi kunaltyagi removed the needs: feedback Specify why not closed/merged yet label May 20, 2020
@truhoang
Copy link
Contributor Author

@kunaltyagi I'm still working on it. Been tied up at work. Gonna try to debug the Stefan's implementation to see what's going on

@kunaltyagi kunaltyagi added needs: more work Specify why not closed/merged yet and removed needs: author reply Specify why not closed/merged yet labels May 21, 2020
@stale
Copy link

stale bot commented Jun 20, 2020

Marking this as stale due to 30 days of inactivity. Commenting or adding a new commit to the pull request will revert this.

@stale stale bot added the status: stale label Jun 20, 2020
@truhoang truhoang force-pushed the linergbd-loadtemplates-fix branch from 70610ad to e7d8179 Compare June 30, 2020 00:12
@stale stale bot removed the status: stale label Jun 30, 2020
@truhoang
Copy link
Contributor Author

Implemented 2 loading methods to circumvent TAR issues in loadTemplates as suggested by @SergioRAgostinho

@kunaltyagi kunaltyagi added the needs: code review Specify why not closed/merged yet label Jul 4, 2020
if (!std::isfinite (p.x) || !std::isfinite (p.y) || !std::isfinite (p.z))
continue;

min_x = std::min (min_x, p.x);
Copy link
Member

Choose a reason for hiding this comment

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

Use Eigen here

@kunaltyagi kunaltyagi removed the needs: code review Specify why not closed/merged yet label Jul 4, 2020
@stale
Copy link

stale bot commented Aug 3, 2020

Marking this as stale due to 30 days of inactivity. Commenting or adding a new commit to the pull request will revert this.

@stale stale bot added the status: stale label Aug 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants