Skip to content

Commit d54e793

Browse files
authored
Expose Lie Groups checks at root level (#335)
* Exposing lie checks context at top level. * Fix capitalization in base init.
1 parent 5bb1c69 commit d54e793

File tree

2 files changed

+21
-13
lines changed

2 files changed

+21
-13
lines changed

theseus/__init__.py

+16-13
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77

88
from .core import ( # usort: skip
9-
as_variable,
109
AutoDiffCostFunction,
1110
AutogradMode,
1211
CostFunction,
@@ -20,22 +19,30 @@
2019
Variable,
2120
Vectorize,
2221
WelschLoss,
22+
as_variable,
2323
)
2424
from .geometry import ( # usort: skip
25+
LieGroup,
26+
LieGroupTensor,
27+
Manifold,
28+
Point2,
29+
Point3,
30+
SE2,
31+
SE3,
32+
SO2,
33+
SO3,
34+
Vector,
2535
adjoint,
2636
between,
2737
compose,
38+
enable_lie_group_check,
2839
enable_lie_tangent,
2940
exp_map,
3041
inverse,
31-
LieGroup,
32-
LieGroupTensor,
3342
local,
3443
log_map,
35-
Manifold,
44+
no_lie_group_check,
3645
no_lie_tangent,
37-
Point2,
38-
Point3,
3946
rand_point2,
4047
rand_point3,
4148
rand_se2,
@@ -51,22 +58,18 @@
5158
randn_so3,
5259
randn_vector,
5360
retract,
54-
SE2,
55-
SE3,
61+
set_lie_group_check_enabled,
5662
set_lie_tangent_enabled,
57-
SO2,
58-
SO3,
59-
Vector,
6063
)
6164
from .optimizer import ( # usort: skip
6265
DenseLinearization,
63-
local_gaussian,
6466
Linearization,
6567
ManifoldGaussian,
6668
OptimizerInfo,
67-
retract_gaussian,
6869
SparseLinearization,
6970
VariableOrdering,
71+
local_gaussian,
72+
retract_gaussian,
7073
)
7174
from .optimizer.linear import ( # usort: skip
7275
BaspachoSparseSolver,

theseus/geometry/__init__.py

+5
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44
# LICENSE file in the root directory of this source tree.
55

66
from .lie_group import LieGroup, adjoint, between, compose, exp_map, inverse, log_map
7+
from .lie_group_check import (
8+
enable_lie_group_check,
9+
no_lie_group_check,
10+
set_lie_group_check_enabled,
11+
)
712
from .manifold import Manifold, OptionalJacobians, local, retract
813
from .point_types import (
914
Point2,

0 commit comments

Comments
 (0)