From 0d19859f8259c81bad5cf97b736b7f4d84e6ced1 Mon Sep 17 00:00:00 2001 From: John Lambert Date: Mon, 21 Sep 2020 12:28:46 -0400 Subject: [PATCH] add python equivalent of c++ sfm data calls --- python/gtsam/examples/SFMExample_bal.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/gtsam/examples/SFMExample_bal.py b/python/gtsam/examples/SFMExample_bal.py index 50e450fea..b70b8057b 100644 --- a/python/gtsam/examples/SFMExample_bal.py +++ b/python/gtsam/examples/SFMExample_bal.py @@ -81,8 +81,8 @@ def run(args): # # Create initial estimate initial = gtsam.Values() - # i = 0 - # j = 0; + i = 0 + j = 0 # for(const SfmCamera& camera: mydata.cameras) initial.insert(C(i++), camera) # for(const SfmTrack& track: mydata.tracks) initial.insert(P(j++), track.p)