Overview
vizSupport provides utilities for setting up a VizInterface module, converting between coordinate representations, and configuring visual properties (sprites, colors) that Vizard consumes.
vizInterface module is not installed, the module still imports successfully but visualization functions raise an ImportError at call time.
Coordinate conversion
Converts a geodetic latitude/longitude/altitude point on a reference ellipsoid to body-fixed Cartesian coordinates.Returns a 3-element list
[X, Y, Z] [m] in the body-fixed frame. Raises ValueError if lla_GP has the wrong length or latitude is out of [-π/2, π/2].Converts body-fixed Cartesian coordinates to geodetic latitude/longitude/altitude.Returns
[lat_rad, lon_rad, alt_m].Color and sprite helpers
Normalizes a color specification to a 4-element Accepts a matplotlib color name string or a pre-normalized
[R, G, B, A] list with values in [0, 255].[R, G, B, A] list.Builds a protobuffer sprite-setting string for use in Returns a string. Raises
VizInterface.KeyError for an unknown shape or ValueError if color is set for "bskSat".Internal validation helpers
Checks that
value is in [low, high] and applies default when value is None.Checks that
value is in {-1, 0, 1}. Maps False to the non-default of -1/0.