udaan.manif.S2 module¶
- class udaan.manif.S2.S2[source]¶
Bases:
objectUnit vector on the 2-sphere S2.
- Wraps a 3-vector (unit norm). Supports:
q1 - q2 -> TS2 (configuration error as tangent vector) q + w -> S2 (geodesic step via exponential map, w is a TS2)
- error_vec(other, version=2)[source]¶
Configuration error vector on the tangent space.
- Parameters:
other – The other S2 point.
version – Error formula variant. 2 (default): hat(q)^2 @ q_other 1: q_other x q (cross product)
- Return type:
- class udaan.manif.S2.TS2[source]¶
Bases:
objectTangent vector to the 2-sphere S2.
Wraps a 3-vector representing angular velocity or configuration error on the sphere. Supports:
v1 - v2 -> TS2 (tangent vector difference) v1 + v2 -> TS2 (tangent vector sum) v * s -> TS2 (scalar multiplication) v.transport(q) -> TS2 (project onto tangent space at q)