symforce.ops.lie_group_ops module¶
- class LieGroupOps[source]¶
Bases:
GroupOps
API for Lie groups.
A Lie group is a group that is also a differentiable manifold, with the property that the group operations are compatible with the smooth structure.
A manifold is a topological space that locally resembles Euclidean space near each point. More precisely, each point of an n-dimensional manifold has a neighbourhood that is homeomorphic to the Euclidean space of dimension n.
A differentiable manifold is a type of manifold that is locally similar enough to a linear space to allow one to do calculus. Any manifold can be described by a collection of charts, also known as an atlas. One may then apply ideas from calculus while working within the individual charts, since each chart lies within a linear space to which the usual rules of calculus apply. If the charts are suitably compatible (namely, the transition from one chart to another is differentiable), then computations done in one chart are valid in any other differentiable chart.
References
- static tangent_dim(a)[source]¶
Size of the element’s tangent space, aka the degrees of freedom it represents. The storage_dim is the higher dimensional space in which this manifold is embedded. For example SO3 could be a tangent_dim of 3 with a storage_dim of 4 if storing quaternions, or 9 if storing rotation matrices. For vector spaces they are equal.
- static from_tangent(a, vec, epsilon=0.0)[source]¶
Mapping from the tangent space approximation at identity into a group element of type a. For most manifold types this is implemented as the exponential map.
This method does not rely on the value of a, only the type.
- static to_tangent(a, epsilon=0.0)[source]¶
Mapping from this element to the tangent space approximation at identity.
- static retract(a, vec, epsilon=0.0)[source]¶
Applies a tangent space perturbation vec to the group element a. Often used in optimization to update nonlinear values from an update step in the tangent space.
Implementation is simply
compose(a, from_tangent(vec))
.
- static local_coordinates(a, b, epsilon=0.0)[source]¶
Computes a tangent space perturbation around a to produce b. Often used in optimization to minimize the distance between two group elements.
Implementation is simply
to_tangent(between(a, b))
.
- static interpolate(a, b, alpha, epsilon=0.0)[source]¶
Interpolates between self and b.
Implementation is to take the perturbation between self and b in tangent space (local_coordinates) and add a scaled version of that to self (retract).
- static jacobian(a, b, tangent_space=True)[source]¶
Computes the jacobian of a with respect to b
If tangent_space is True, the jacobian is computed in the local coordinates of the tangent spaces around self and X. If tangent_space is False, the jacobian is computed in the storage spaces of self and X.
See also
symforce.jacobian_helpers.tangent_jacobians()
symforce.ops.interfaces.lie_group.LieGroup.jacobian()
- Returns: the jacobian matrix of shape MxN, where M is the dimension of the tangent (or
storage) space of a and N is the dimension of the tangent (or storage) space of b.
- Parameters:
a (T.Element) –
b (T.Element) –
tangent_space (bool) –
- Return type:
geo.Matrix