Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
Rugged
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Orekit
Rugged
Commits
de2622f0
Commit
de2622f0
authored
8 years ago
by
Jonathan Guinet
Browse files
Options
Downloads
Patches
Plain Diff
Rugged.java change
parent
4a23bfb5
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/org/orekit/rugged/api/Rugged.java
+30
-7
30 additions, 7 deletions
src/main/java/org/orekit/rugged/api/Rugged.java
with
30 additions
and
7 deletions
src/main/java/org/orekit/rugged/api/Rugged.java
+
30
−
7
View file @
de2622f0
...
...
@@ -606,10 +606,33 @@ public class Rugged {
//final LineSensor sensorB = getLineSensor(sensorNameB);
// Get sensors's position and LOS
final
Vector3D
vA
=
sensorA
.
getLOS
(
dateA
,
pixelA
);
// V_a : line of sight's vectorA
final
Vector3D
vB
=
sensorB
.
getLOS
(
dateB
,
pixelB
);
// V_b
final
Vector3D
sA
=
sensorA
.
getPosition
();
// S_a : sensorA 's position
final
Vector3D
sB
=
sensorB
.
getPosition
();
// S_b
// compute the approximate transform between spacecraft and observed body
final
Transform
scToInertA
=
scToBody
.
getScToInertial
(
dateA
);
//final Transform inertToBodyA = scToBody.getInertialToBody(dateA);
//final Transform approximate = new Transform(dateA, scToInertA, inertToBodyA);
// compute location of each pixel
final
Vector3D
sA
=
scToInertA
.
transformPosition
(
sensorA
.
getPosition
());
final
Vector3D
vA
=
scToInertA
.
transformVector
(
sensorA
.
getLOS
(
dateA
,
pixelA
));
//TODO scToBody should be found from ruggedB instance
final
Transform
scToInertB
=
scToBody
.
getScToInertial
(
dateB
);
//final Transform inertToBodyB = scToBody.getInertialToBody(dateB);
//final Transform approximate = new Transform(dateA, scToInert, inertToBody);
// compute location of each pixel
final
Vector3D
sB
=
scToInertB
.
transformPosition
(
sensorB
.
getPosition
());
final
Vector3D
vB
=
scToInertB
.
transformVector
(
sensorB
.
getLOS
(
dateB
,
pixelB
));
//final Vector3D vA = sensorA.getLOS(dateA, pixelA); // V_a : line of sight's vectorA
//final Vector3D vB = sensorB.getLOS(dateB, pixelB); // V_b
//final Vector3D sA = sensorA.getPosition(); // S_a : sensorA 's position
//final Vector3D sB = sensorB.getPosition(); // S_b
final
Vector3D
vBase
=
sB
.
subtract
(
sA
);
// S_b - S_a
final
double
svA
=
Vector3D
.
dotProduct
(
vBase
,
vA
);
// SV_a = (S_b - S_a).V_a
...
...
@@ -627,7 +650,7 @@ public class Rugged {
final
Vector3D
mB
=
sB
.
add
(
vB
.
scalarMultiply
(
lambdaB
));
// M_b = S_b + lambda_b * V_b
final
Vector3D
vDistance
=
mB
.
subtract
(
mA
);
// M_b - M_a
System
.
out
.
format
(
"vDistance %f %f %f "
,
vDistance
.
getX
(),
vDistance
.
getY
(),
vDistance
.
getZ
());
// Get square of the euclidean norm
final
double
d
=
vDistance
.
getNormSq
();
return
d
;
...
...
@@ -794,10 +817,10 @@ public class Rugged {
final
int
pixelB
=
(
int
)
spB
.
getPixelNumber
();
final
DerivativeStructure
[]
ilResult
=
distanceBetweenLOSDerivatives
(
reference
.
getSensorNameA
()
,
distanceBetweenLOSDerivatives
(
lineSensorA
,
dateA
,
pixelA
,
reference
.
getSensorNameB
()
,
lineSensorB
,
dateB
,
pixelB
,
generator
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment