From e006554258f2d249d6902acd0ceb3caf09eaf1bf Mon Sep 17 00:00:00 2001 From: Holger Rapp Date: Fri, 16 Jun 2017 17:21:24 +0200 Subject: [PATCH] Enabled a single point cloud for 2D input. (#382) --- cartographer_ros/cartographer_ros/node.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cartographer_ros/cartographer_ros/node.cc b/cartographer_ros/cartographer_ros/node.cc index d766516..f480f51 100644 --- a/cartographer_ros/cartographer_ros/node.cc +++ b/cartographer_ros/cartographer_ros/node.cc @@ -365,8 +365,8 @@ void Node::LaunchSubscribers(const TrajectoryOptions& options, bool Node::ValidateTrajectoryOptions(const TrajectoryOptions& options) { if (node_options_.map_builder_options.use_trajectory_builder_2d() && options.trajectory_builder_options.has_trajectory_builder_2d_options()) { - // Using point clouds is only supported in 3D. - if (options.num_point_clouds == 0) { + // Only one point cloud source is supported in 2D. + if (options.num_point_clouds <= 1) { return true; } }