quadMapSupport
- quadMapSupport.computeCamFOVBox(parentBody, spiceObject, scObject, cam)[source]
This method projects a camera FOV onto the surface of a reference ellipsoid. All rays which intersect the ellipsoid are added to the output list, which is formatted with the intersection points as: [x1 y1 z1 x2 y2 … z4]. If all four camera rays intersect, this list can be used to generate a QuadMap in Vizard to see the region. Otherwise, the partial list is returned for the user to handle.
- Parameters:
parentBody – Parent grav body, containing
radEquator
andradiusRatio
which define the reference ellipsoidspiceObject – SPICE object
scObject – Spacecraft instance
cam – vizInterface.StdCameraSettings or messaging.CameraConfigMsgPayload
- Returns:
FOVBox, list of camera FOV rays which intersect the reference ellipsoid
- Return type:
Up to 12-element double-list
- quadMapSupport.computeRectMesh(parentBody, latBounds, lonBounds, maxAngWidth)[source]
This method creates a polar/rectangular mesh on the surface of a reference ellipsoid.
- Parameters:
parentBody – Parent grav body, containing
radEquator
andradiusRatio
which define the reference ellipsoid.latBounds – [deg] Latitude bounds
lonBounds – [deg] Longitude bounds
maxAngWidth – [deg] Maximum angular width for sub-regions
- Returns:
r_GP_P, position vector of the location G relative to parent body frame P in P frame components
- Return type:
3-element list
- quadMapSupport.subdivideFOVBox(parentBody, FOVBox, fieldOfViewSubdivs)[source]
This method subdivides a complete FOVBox into N x N regions. This is helpful for wrapping a rectangular region over a convex surface. Uses bi-linear interpolation.
- Parameters:
parentBody – Parent grav body, containing
radEquator
andradiusRatio
which define the reference ellipsoid.FOVBox – FOV corners in fixed-frame, defined as [x1, y1, z1, x2, … , z4]
fieldOfViewSubdivs – N, number of vertical and horizontal subdivisions to mesh
- Returns:
vertices, interpolated FOVBox in fixed-frame to include higher-resolution quads
- Return type:
N x N x 4 double-list