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

Publish map in odom_lidar frame #417

Merged
merged 2 commits into from
Jan 7, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion ros/src/OdometryServer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,10 @@ void OdometryServer::PublishClouds(const std::vector<Eigen::Vector3d> frame,

frame_publisher_->publish(std::move(EigenToPointCloud2(frame, header)));
kpoints_publisher_->publish(std::move(EigenToPointCloud2(keypoints, header)));
map_publisher_->publish(std::move(EigenToPointCloud2(kiss_map, kiss_pose, header)));

auto local_map_header = header;
local_map_header.frame_id = lidar_odom_frame_;
map_publisher_->publish(std::move(EigenToPointCloud2(kiss_map, local_map_header)));
}
} // namespace kiss_icp_ros

Expand Down
Loading