public class SensorToSensorMapping extends Object
Rugged.distanceBetweenLOS(org.orekit.rugged.linesensor.LineSensor, org.orekit.time.AbsoluteDate, double, org.orekit.rugged.utils.SpacecraftToObservedBody, org.orekit.rugged.linesensor.LineSensor, org.orekit.time.AbsoluteDate, double)
Constraints in relation to central body distance can be added.
SensorMapping
Constructor | Description |
---|---|
SensorToSensorMapping(String sensorNameA,
String sensorNameB) |
Build a new instance without central body constraint (with default Rugged names).
|
SensorToSensorMapping(String sensorNameA,
String sensorNameB,
double bodyConstraintWeight) |
Build a new instance with central body constraints (with default Rugged names):
we want to minimize the distance between pixel A and central body.
|
SensorToSensorMapping(String sensorNameA,
String ruggedNameA,
String sensorNameB,
String ruggedNameB) |
Build a new instance without central body constraints.
|
SensorToSensorMapping(String sensorNameA,
String ruggedNameA,
String sensorNameB,
String ruggedNameB,
double bodyConstraintWeight) |
Build a new instance with central body constraint.
|
Modifier and Type | Method | Description |
---|---|---|
void |
addMapping(SensorPixel pixelA,
SensorPixel pixelB,
Double losDistance) |
Add a mapping between two sensor pixels (A and B) and corresponding distance between the LOS.
|
void |
addMapping(SensorPixel pixelA,
SensorPixel pixelB,
Double losDistance,
Double bodyDistance) |
Add a mapping between two sensor pixels (A and B) and corresponding distance between the LOS
and the central body distance constraint associated with pixel A.
|
double |
getBodyConstraintWeight() |
Get the weight given to the central body distance constraint with respect to the LOS distance.
|
Double |
getBodyDistance(int idx) |
Get distance between central body and pixel A, corresponding to the inter-mapping index.
|
List<Double> |
getBodyDistances() |
Get distances between central body and pixel A (mapping with constraints).
|
Double |
getLosDistance(int idx) |
Get distance between LOS, corresponding to the inter-mapping index.
|
List<Double> |
getLosDistances() |
Get distances between lines of sight (from both view).
|
Set<Map.Entry<SensorPixel,SensorPixel>> |
getMapping() |
Get all the inter-mapping entries.
|
String |
getRuggedNameA() |
Get the name of the Rugged A to which mapping applies.
|
String |
getRuggedNameB() |
Get the name of the Rugged B to which mapping applies.
|
String |
getSensorNameA() |
Get the name of the sensor A to which mapping applies.
|
String |
getSensorNameB() |
Get the name of the sensor B to which mapping applies.
|
void |
setBodyConstraintWeight(double bodyConstraintWeight) |
Set the central body constraint weight.
|
public SensorToSensorMapping(String sensorNameA, String sensorNameB)
sensorNameA
- name of the sensor A to which mapping appliessensorNameB
- name of the sensor B to which mapping appliespublic SensorToSensorMapping(String sensorNameA, String ruggedNameA, String sensorNameB, String ruggedNameB, double bodyConstraintWeight)
sensorNameA
- name of the sensor A to which mapping appliesruggedNameA
- name of the Rugged A to which mapping appliessensorNameB
- name of the sensor B to which mapping appliesruggedNameB
- name of the Rugged B to which mapping appliesbodyConstraintWeight
- weight given to the central body distance constraint
with respect to the LOS distance (between 0 and 1).
public SensorToSensorMapping(String sensorNameA, String ruggedNameA, String sensorNameB, String ruggedNameB)
sensorNameA
- name of the sensor A to which mapping appliesruggedNameA
- name of the Rugged A to which mapping appliessensorNameB
- name of the sensor B to which mapping appliesruggedNameB
- name of the Rugged B to which mapping appliespublic SensorToSensorMapping(String sensorNameA, String sensorNameB, double bodyConstraintWeight)
sensorNameA
- name of the sensor A to which mapping appliessensorNameB
- name of the sensor B to which mapping appliesbodyConstraintWeight
- weight given to the central body distance constraint
with respect to the LOS distance (between 0 and 1).
public String getSensorNameB()
public String getSensorNameA()
public String getRuggedNameB()
public String getRuggedNameA()
public Set<Map.Entry<SensorPixel,SensorPixel>> getMapping()
public List<Double> getLosDistances()
public List<Double> getBodyDistances()
public double getBodyConstraintWeight()
public Double getBodyDistance(int idx)
idx
- inter-mapping indexpublic Double getLosDistance(int idx)
idx
- inter-mapping indexpublic void addMapping(SensorPixel pixelA, SensorPixel pixelB, Double losDistance)
pixelA
- sensor pixel ApixelB
- sensor pixel B corresponding to the sensor pixel A (by direct then inverse location)losDistance
- distance between the two lines of sightpublic void addMapping(SensorPixel pixelA, SensorPixel pixelB, Double losDistance, Double bodyDistance)
pixelA
- sensor pixel ApixelB
- sensor pixel B corresponding to the sensor pixel A (by direct then inverse location)losDistance
- distance between the two lines of sightbodyDistance
- elevation to central bodypublic void setBodyConstraintWeight(double bodyConstraintWeight)
bodyConstraintWeight
- the central body constraint weight to setCopyright © 2014-2019 CS Systèmes d'information. All rights reserved.