From 909b5500f8a43e4aa07c15086fd586069cd869c8 Mon Sep 17 00:00:00 2001 From: Milo Knowles Date: Fri, 26 Mar 2021 11:26:27 -0400 Subject: [PATCH] Fix incorrect Vector dimension that was causing CI failures --- gtsam_unstable/slam/PartialPriorFactor.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtsam_unstable/slam/PartialPriorFactor.h b/gtsam_unstable/slam/PartialPriorFactor.h index 7568a222f..e92c23cb8 100644 --- a/gtsam_unstable/slam/PartialPriorFactor.h +++ b/gtsam_unstable/slam/PartialPriorFactor.h @@ -119,7 +119,7 @@ namespace gtsam { } // Compute the tangent vector representation of T and select relevant parameters. const Vector& full_logmap = T::Logmap(p); - Vector partial_logmap = Vector::Zero(T::dimension); + Vector partial_logmap = Vector::Zero(indices_.size()); for (size_t i = 0; i < indices_.size(); ++i) { partial_logmap(i) = full_logmap(indices_.at(i)); }