import from is working
parent
3d4a8e16a2
commit
fda79057e4
|
@ -1,6 +1,5 @@
|
|||
from .gtsam import *
|
||||
|
||||
|
||||
def _init():
|
||||
import numpy as np
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@ import math
|
|||
import gtsam
|
||||
import matplotlib.pyplot as plt
|
||||
import numpy as np
|
||||
from gtsam.gtsam.symbol_shorthand import B, V, X
|
||||
from gtsam.symbol_shorthand import B, V, X
|
||||
from gtsam.utils.plot import plot_pose3
|
||||
from mpl_toolkits.mplot3d import Axes3D
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@ from gtsam import (ISAM2, BetweenFactorConstantBias, Cal3_S2,
|
|||
PinholeCameraCal3_S2, Point3, Pose3,
|
||||
PriorFactorConstantBias, PriorFactorPose3,
|
||||
PriorFactorVector, Rot3, Values)
|
||||
from gtsam.gtsam.symbol_shorthand import B, V, X
|
||||
from gtsam.symbol_shorthand import B, V, X
|
||||
from gtsam.utils import plot
|
||||
from mpl_toolkits.mplot3d import Axes3D # pylint: disable=W0611
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@ from __future__ import print_function
|
|||
import numpy as np
|
||||
|
||||
import gtsam
|
||||
from gtsam.gtsam.symbol_shorthand import X, L
|
||||
from gtsam.symbol_shorthand import X, L
|
||||
|
||||
# Create noise models
|
||||
PRIOR_NOISE = gtsam.noiseModel.Diagonal.Sigmas(np.array([0.3, 0.3, 0.1]))
|
||||
|
|
|
@ -27,7 +27,6 @@ def vector3(x, y, z):
|
|||
"""Create 3d double numpy array."""
|
||||
return np.array([x, y, z], dtype=np.float)
|
||||
|
||||
|
||||
# Create noise models
|
||||
PRIOR_NOISE = gtsam.noiseModel.Diagonal.Sigmas(vector3(0.3, 0.3, 0.1))
|
||||
ODOMETRY_NOISE = gtsam.noiseModel.Diagonal.Sigmas(vector3(0.2, 0.2, 0.1))
|
||||
|
|
|
@ -12,7 +12,7 @@ a single variable with a single factor.
|
|||
|
||||
import numpy as np
|
||||
import gtsam
|
||||
from gtsam.gtsam.symbol_shorthand import X
|
||||
from gtsam.symbol_shorthand import X
|
||||
|
||||
def main():
|
||||
"""
|
||||
|
|
|
@ -17,7 +17,7 @@ import gtsam
|
|||
import gtsam.utils.plot as gtsam_plot
|
||||
import matplotlib.pyplot as plt
|
||||
import numpy as np
|
||||
from gtsam.gtsam.symbol_shorthand import L, X
|
||||
from gtsam.symbol_shorthand import L, X
|
||||
from gtsam.examples import SFMdata
|
||||
from mpl_toolkits.mplot3d import Axes3D # pylint: disable=W0611
|
||||
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
from .gtsam.imuBias import *
|
|
@ -0,0 +1 @@
|
|||
from .gtsam.noiseModel import *
|
|
@ -0,0 +1 @@
|
|||
from .gtsam.symbol_shorthand import *
|
|
@ -16,7 +16,7 @@ import unittest
|
|||
|
||||
import gtsam
|
||||
import numpy as np
|
||||
from gtsam.gtsam.symbol_shorthand import X
|
||||
from gtsam.symbol_shorthand import X
|
||||
from gtsam.utils.test_case import GtsamTestCase
|
||||
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@ import numpy as np
|
|||
import gtsam
|
||||
import gtsam.utils.visual_data_generator as generator
|
||||
from gtsam import symbol
|
||||
from gtsam.gtsam.noiseModel import Isotropic, Diagonal
|
||||
from gtsam.noiseModel import Isotropic, Diagonal
|
||||
from gtsam.utils.test_case import GtsamTestCase
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue