Sync with varun's pr

release/4.3a0
Fan Jiang 2020-07-29 13:54:49 -04:00
parent 08da0ab5a6
commit e9deca590a
1 changed files with 19 additions and 5 deletions

View File

@ -1,9 +1,23 @@
from .gtsam import * from .gtsam import *
def Point2(x=0, y=0):
import numpy as np
return np.array([x, y], dtype=float)
def Point3(x=0, y=0, z=0): def _init():
import numpy as np import numpy as np
return np.array([x, y, z], dtype=float)
global Point2 # export function
def Point2(x=0, y=0):
return np.array([x, y], dtype=float)
global Point3 # export function
def Point3(x=0, y=0, z=0):
return np.array([x, y, z], dtype=float)
# for interactive debugging
if __name__ == "__main__":
# we want all definitions accessible
globals().update(locals())
_init()