StarId¶
- class sonic.StarId¶
- Method Summary
- static checkTriad(kvec, cat_idx, pointsS2_meas, pointsS2_cat, ijk, tol, max_angle, min_matches)¶
[matches, att_ICRF2C] = check_triad(kvec, cat_idx, pointsS2_meas, pointsS2_cat, ijk, tol, max_angle, min_matches)
Check if a triad is a valid triad, given a k-vector table.
- Inputs:
kvec (1x1sonic.Kvector): a k-vector table
hip_cat_idx (:x1 uint64): indices of the catalog
points2_meas (sonic.Points2): unit-normalized vectors measured in the camera frame
pointsS2_cat (sonic.PointsS2): catalog line of sights
ijk (3x1 uint64): the indexes of the measurement triad we are checking
tol (1x1 double): angular tolerance
max_angle (1x1, double): the maximum angle between stars. Usually constrained by the camera FOV.
min_matches (1x1 uint64): minimum matches to stop and return
- Outputs:
matches (2x: int): pairs of measurement and id. In the i-th pair, element matches(1,i) is the number of the measurement and matches(2,i) is the corresponding catalog id
att_ICRF2C (sonic.Attitude): attitude of the camera
valid (1x1 boolean): whether sufficient matches were
found
Last revised: 04/15/24 Last author: Sebastien Henry
- static interstarAngle(kvec, cat, pointsS2_meas, tol, max_angle, min_matches)¶
Takes in multiple line of sight measurements, in the camera frame, and matches them to stars in the given star catalog. Also returns an attitude estimate from ICRF to camera.
- Inputs:
kvec (sonic.Kvector): a k-vector object
hip_cat (sonic.StarCatalog): star catalog NOTE: it MUST be an unfiltered catalog
points2_meas (sonic.Points2): unit-normalized vectors measured in the camera frame
tol (1x1 double): angular tolerance, a match is detected if the angle between measurement and catalog is less than tolerance
max_angle (1x1, double): the maximum angle between stars. Usually constrained by the camera FOV.
min_matches (1x1, uint64): the minimum number of pairs in matches to deem the solution correct. Minimum is 4. Default is 5.
- Outputs:
matches (2xn int): pairs of measurement-hipparcos index. In the i-th pair, element matches(1,i) is the number of the measurement and matches(2,i) is the corresponding index in the hipparcos catalog (!!! not the id!!!)
att_ICRF2C (sonic.Attitude): attitude of the camera
Last revised: 05/01/24 Last author: Sebastien Henry