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

Consistency in PointCloud interfaces #64

Squelsh opened this Issue Jan 14, 2018 · 3 comments


None yet
2 participants

Squelsh commented Jan 14, 2018

We should improve the API of all point cloud loaders and constructors and offer the same set of parameters.
Some API calls allow you to shift and scale the cloud while loading, some other calls don't.
Also there should not only be the option to translate but also to rotate a cloud while loading it from a file (the API was implemented before we had the matrix calculations in the math helpers).

The high level API offers:

bool GpuVoxels::insertPointCloudFromFile(const std::string map_name, const std::string path, const bool use_model_path,
                                const BitVoxelMeaning voxel_meaning, const bool shift_to_zero = false,
                                const Vector3f &offset_XYZ = Vector3f(), const float scaling = 1.0);

while the CTOR of PointCloud only has no options at all:

PointCloud::PointCloud(const std::string &path_to_file, bool use_model_path = true);

But this is a low prio improvement.


This comment has been minimized.

atleaa commented Apr 27, 2018

A somewhat related question:
Is there a way to scale the binvox files inserted as part of a urdf robot?
If not I will need to find a way to scale the actual binvox or stl files.


This comment has been minimized.


Squelsh commented Apr 27, 2018

You can scale the binvox files during the rasterization process. Therefore I created the script, which has a scaling parameter.
Translation and rotation defined in the .urdf files is already supported. Scaling unfortunately not (but it would be pretty easy to implement, though).


This comment has been minimized.

atleaa commented Apr 27, 2018

Thanks for the feedback. No wonder I couldn’t find it then. I’ll try the scaling of the binvox files.

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