Skip to content

Commit

Permalink
Merge pull request naturerobots#73 from JustusBraun/fix/mesh-map
Browse files Browse the repository at this point in the history
Fix nullptr dereference in mesh_map::readMap() and remove dependency on mesh_client
  • Loading branch information
Cakem1x authored Jan 13, 2025
2 parents 0505319 + eb06721 commit ea54926
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions mesh_map/src/mesh_map.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -284,10 +284,9 @@ bool MeshMap::readMap()
hdf5_mesh_input->setMeshName(mesh_working_part);
lvr2::MeshBufferPtr mesh_buffer = hdf5_mesh_input->MeshIO::load(mesh_working_part);

RCLCPP_DEBUG_STREAM(node->get_logger(), "Convert buffer to HEM: \n" << *mesh_buffer);

if(mesh_buffer)
{
RCLCPP_DEBUG_STREAM(node->get_logger(), "Convert buffer to HEM: \n" << *mesh_buffer);
RCLCPP_DEBUG_STREAM(node->get_logger(), "Creating mesh of type '" << hem_impl_ << "'");
mesh_ptr = createHemByName(hem_impl_, mesh_buffer);
RCLCPP_INFO_STREAM(node->get_logger(), "The mesh of type '" << hem_impl_ << "' has been loaded successfully with "
Expand Down
1 change: 0 additions & 1 deletion mesh_navigation/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

<exec_depend>mbf_mesh_core</exec_depend>
<exec_depend>mbf_mesh_nav</exec_depend>
<exec_depend>mesh_client</exec_depend>
<exec_depend>mesh_controller</exec_depend>
<exec_depend>mesh_layers</exec_depend>
<exec_depend>mesh_map</exec_depend>
Expand Down

0 comments on commit ea54926

Please sign in to comment.