Skip to content

Surface reconstruction and Slam server - #2

Merged
fmrico merged 4 commits into
rollingfrom
slam_server
Sep 22, 2025
Merged

Surface reconstruction and Slam server#2
fmrico merged 4 commits into
rollingfrom
slam_server

Conversation

@fmrico

@fmrico fmrico commented Sep 21, 2025

Copy link
Copy Markdown
Contributor

Hi,

I have decided to move the code from the currently developing easynav_navmap_stack to this package to have the function from_pointcloud2 with the asociated type BuildParams:

struct BuildParams
{
  Eigen::Vector3f seed = {0.0, 0.0, 0.0};
  float resolution = 1.0;
  float max_edge_len = 2.0;
  float max_slope_deg = 30.0f;   // maximum slope w.r.t. vertical
  float neighbor_radius = 2.0f;  // search radius
  int   k_neighbors = 20;        // k-NN alternative to radius
  float min_area = 1e-6f;        // minimum triangle area to avoid degenerates
  bool  use_radius = true;
  float min_angle_deg = 20.0f;   // minimum interior angle (deg) to avoid sliver triangles
};

navmap::NavMap from_pointcloud2(
  const sensor_msgs::msg::PointCloud2 & pc2,
  navmap_ros_interfaces::msg::NavMap & out_msg,
  BuildParams params);

I have also added an executable slam_server_app which is able to receive nav_msgs::msg::OccupancyGrid and sensor_msgs::msg::PointCloud2 and publish the corresponding navmap_ros_interfaces::msg::NavMap. Usage, for example, as follows:

ros2 run navmap_ros slam_server_app --ros-args -r /incoming_pc2_map:=/map 

I hope it helps

Signed-off-by: Francisco Martín Rico <fmrico@gmail.com>
Signed-off-by: Francisco Martín Rico <fmrico@gmail.com>
Signed-off-by: Francisco Martín Rico <fmrico@gmail.com>
Signed-off-by: Francisco Martín Rico <fmrico@gmail.com>
@fmrico
fmrico merged commit c5e8fca into rolling Sep 22, 2025
1 check passed
@fmrico
fmrico deleted the slam_server branch September 22, 2025 08:26
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.

1 participant