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

LVR Update #46

Merged
merged 9 commits into from
Jan 2, 2025
Merged

LVR Update #46

merged 9 commits into from
Jan 2, 2025

Conversation

amock
Copy link
Collaborator

@amock amock commented Dec 11, 2024

This is a reaction to the upcoming LVR update (3.0.0)

Loading/Writing HDF5

The HDF5 structure has changed slightly over time so that the mesh_tools paper description of the data got wrong. I changed parts of it back so that it gets more like the papers again. It also makes things easier to handle since vertex attributes are now seperated from the actual mesh geometry inside the HDF5 (as it was described in the mesh_tools paper).

Cleanup

I have also removed packages for which we have no tests and which are currently not used elsewhere:

  • mesh_msgs_hdf5
  • hdf5_map_io

Testing instructions

This PR works together with:

Copy link
Member

@Cakem1x Cakem1x left a comment

Choose a reason for hiding this comment

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

Looks quite good, my only findings are:

  • optional stuff regarding commented out code
  • leftover debug log statement ( I think )
  • missing pkg xml dep

find_package(mesh_msgs REQUIRED)
find_package(resource_retriever REQUIRED)
Copy link
Member

Choose a reason for hiding this comment

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

This is missing as a ROS dependency in package.xml
(missing dep might be hidden because another pkg installs this)

Copy link
Member

Choose a reason for hiding this comment

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

Out of curiosity, for what functionality do we depend on this pkg here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

We only linked against it in the CMakeLists. However, it was not used anywhere in the code. So I have removed it.

Comment on lines 397 to 401
// example:
// "vertices" -> Channel<float>
std::cout << *mesh_buffer << std::endl;

// "mesh_navigatio_tutorials/maps/floor_is_lava.h5"
Copy link
Member

Choose a reason for hiding this comment

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

I suspect this logging statement should not be in here. It breaks the flow of the multi line comments with the example. Also, if we want to do logging here, we should probably use ROS logs.

Suggested change
// example:
// "vertices" -> Channel<float>
std::cout << *mesh_buffer << std::endl;
// "mesh_navigatio_tutorials/maps/floor_is_lava.h5"
// example:
// "vertices" -> Channel<float>
// "mesh_navigatio_tutorials/maps/floor_is_lava.h5"

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I think it is a quite helpful print. So I changed the cout to RCLCPP_INFO_STREAM

Comment on lines +833 to +838
// is not working anyway
// // Open IO
// hdf5_map_io::HDF5MapIO map_io(m_mapFilePath->getFilename());

// Add label with faces list
map_io.addOrUpdateLabel(results[0], results[1], faces);
// // Add label with faces list
// map_io.addOrUpdateLabel(results[0], results[1], faces);
Copy link
Member

Choose a reason for hiding this comment

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

I'd be fine with fully removing these lines of code. I usually prefer having less clutter over seeing how things were done in the past. If we implement e.g. color/texture loading later and some of the commented out code is doing something non-trivial, we can always look at the ROS1 version in git, for example.

The same applies for the two larger comment blocks above in this file.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I removed all the larger comment blocks

@amock
Copy link
Collaborator Author

amock commented Dec 23, 2024

Looks quite good, my only findings are:

  • optional stuff regarding commented out code
  • leftover debug log statement ( I think )
  • missing pkg xml dep

I think I've considered everything on the list

@Cakem1x Cakem1x self-requested a review January 2, 2025 08:24
Copy link
Member

@Cakem1x Cakem1x left a comment

Choose a reason for hiding this comment

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

Nice, thanks for reiterating! 👍

@amock amock merged commit 59d9102 into humble Jan 2, 2025
1 check passed
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.

3 participants