Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
Usgscsm
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
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
aflab
astrogeology
Usgscsm
Commits
e01ea4e7
Commit
e01ea4e7
authored
Nov 2, 2018
by
jay
Browse files
Options
Downloads
Patches
Plain Diff
unsupported pushed in
parent
73ed201f
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
include/usgscsm/UsgsAstroPlugin.h
+0
-4
0 additions, 4 deletions
include/usgscsm/UsgsAstroPlugin.h
src/UsgsAstroFrameSensorModel.cpp
+16
-12
16 additions, 12 deletions
src/UsgsAstroFrameSensorModel.cpp
src/UsgsAstroPlugin.cpp
+0
-7
0 additions, 7 deletions
src/UsgsAstroPlugin.cpp
with
16 additions
and
23 deletions
include/usgscsm/UsgsAstroPlugin.h
+
0
−
4
View file @
e01ea4e7
...
@@ -55,11 +55,7 @@ private:
...
@@ -55,11 +55,7 @@ private:
static
const
std
::
string
_MANUFACTURER_NAME
;
static
const
std
::
string
_MANUFACTURER_NAME
;
static
const
std
::
string
_RELEASE_DATE
;
static
const
std
::
string
_RELEASE_DATE
;
static
const
int
_N_SENSOR_MODELS
;
static
const
int
_N_SENSOR_MODELS
;
static
const
int
_NUM_ISD_KEYWORDS
;
static
const
std
::
string
_ISD_KEYWORD
[];
static
const
std
::
string
_ISD_KEYWORD
[];
static
const
int
_NUM_STATE_KEYWORDS
;
static
const
std
::
string
_STATE_KEYWORD
[];
static
const
json
MODEL_KEYWORDS
;
typedef
csm
::
Model
*
(
*
sensorConstructor
)(
void
);
typedef
csm
::
Model
*
(
*
sensorConstructor
)(
void
);
static
std
::
map
<
std
::
string
,
sensorConstructor
>
MODELS
;
static
std
::
map
<
std
::
string
,
sensorConstructor
>
MODELS
;
...
...
This diff is collapsed.
Click to expand it.
src/UsgsAstroFrameSensorModel.cpp
+
16
−
12
View file @
e01ea4e7
...
@@ -152,9 +152,17 @@ csm::ImageCoordCovar UsgsAstroFrameSensorModel::groundToImage(const csm::EcefCoo
...
@@ -152,9 +152,17 @@ csm::ImageCoordCovar UsgsAstroFrameSensorModel::groundToImage(const csm::EcefCoo
double
*
achievedPrecision
,
double
*
achievedPrecision
,
csm
::
WarningList
*
warnings
)
const
{
csm
::
WarningList
*
warnings
)
const
{
throw
csm
::
Error
(
csm
::
Error
::
UNSUPPORTED_FUNCTION
,
csm
::
EcefCoord
gp
;
"Unsupported function"
,
gp
.
x
=
groundPt
.
x
;
"UsgsAstroFrameSensorModel::groundToImage"
);
gp
.
y
=
groundPt
.
y
;
gp
.
z
=
groundPt
.
z
;
csm
::
ImageCoord
ip
=
groundToImage
(
gp
,
desiredPrecision
,
achievedPrecision
,
warnings
);
csm
::
ImageCoordCovar
result
(
ip
.
line
,
ip
.
samp
);
// This is a partial, incorrect implementation to test if SocetGXP needs
// this method implemented in order to load the sensor.
return
result
;
}
}
...
@@ -215,9 +223,9 @@ csm::EcefCoordCovar UsgsAstroFrameSensorModel::imageToGround(const csm::ImageCoo
...
@@ -215,9 +223,9 @@ csm::EcefCoordCovar UsgsAstroFrameSensorModel::imageToGround(const csm::ImageCoo
double
heightVariance
,
double
desiredPrecision
,
double
heightVariance
,
double
desiredPrecision
,
double
*
achievedPrecision
,
double
*
achievedPrecision
,
csm
::
WarningList
*
warnings
)
const
{
csm
::
WarningList
*
warnings
)
const
{
throw
csm
::
Error
(
csm
::
Error
::
UNSUPPORTED_FUNCTION
,
// This is an incomplete implementation to see if SocetGXP needs this method implemented.
"Unsupported function"
,
csm
::
EcefCoordCovar
result
;
"UsgsAstroFrameSensorModel::imageToGround"
)
;
return
result
;
}
}
...
@@ -585,9 +593,7 @@ std::string UsgsAstroFrameSensorModel::getCollectionIdentifier() const {
...
@@ -585,9 +593,7 @@ std::string UsgsAstroFrameSensorModel::getCollectionIdentifier() const {
std
::
string
UsgsAstroFrameSensorModel
::
getTrajectoryIdentifier
()
const
{
std
::
string
UsgsAstroFrameSensorModel
::
getTrajectoryIdentifier
()
const
{
throw
csm
::
Error
(
csm
::
Error
::
UNSUPPORTED_FUNCTION
,
return
""
;
"Unsupported function"
,
"UsgsAstroFrameSensorModel::getTrajectoryIdentifier"
);
}
}
...
@@ -602,9 +608,7 @@ std::string UsgsAstroFrameSensorModel::getSensorMode() const {
...
@@ -602,9 +608,7 @@ std::string UsgsAstroFrameSensorModel::getSensorMode() const {
std
::
string
UsgsAstroFrameSensorModel
::
getReferenceDateAndTime
()
const
{
std
::
string
UsgsAstroFrameSensorModel
::
getReferenceDateAndTime
()
const
{
throw
csm
::
Error
(
csm
::
Error
::
UNSUPPORTED_FUNCTION
,
return
""
;
"Unsupported function"
,
"UsgsAstroFrameSensorModel::getReferenceDateAndTime"
);
}
}
...
...
This diff is collapsed.
Click to expand it.
src/UsgsAstroPlugin.cpp
+
0
−
7
View file @
e01ea4e7
...
@@ -30,7 +30,6 @@ const std::string UsgsAstroPlugin::_PLUGIN_NAME = "UsgsAstroPluginCSM";
...
@@ -30,7 +30,6 @@ const std::string UsgsAstroPlugin::_PLUGIN_NAME = "UsgsAstroPluginCSM";
const
std
::
string
UsgsAstroPlugin
::
_MANUFACTURER_NAME
=
"UsgsAstrogeology"
;
const
std
::
string
UsgsAstroPlugin
::
_MANUFACTURER_NAME
=
"UsgsAstrogeology"
;
const
std
::
string
UsgsAstroPlugin
::
_RELEASE_DATE
=
"20170425"
;
const
std
::
string
UsgsAstroPlugin
::
_RELEASE_DATE
=
"20170425"
;
const
int
UsgsAstroPlugin
::
_N_SENSOR_MODELS
=
2
;
const
int
UsgsAstroPlugin
::
_N_SENSOR_MODELS
=
2
;
const
int
UsgsAstroPlugin
::
_NUM_ISD_KEYWORDS
=
21
;
const
std
::
string
UsgsAstroPlugin
::
_ISD_KEYWORD
[]
=
const
std
::
string
UsgsAstroPlugin
::
_ISD_KEYWORD
[]
=
{
{
...
@@ -58,12 +57,6 @@ const std::string UsgsAstroPlugin::_ISD_KEYWORD[] =
...
@@ -58,12 +57,6 @@ const std::string UsgsAstroPlugin::_ISD_KEYWORD[] =
"sun_position"
"sun_position"
};
};
// const json UsgsAstroPlugin::MODEL_KEYWORDS = {
// {UsgsAstroFrameSensorModel::_SENSOR_MODEL_NAME, UsgsAstroFrameSensorModel::_STATE_KEYWORD},
// {UsgsAstroLsSensorModel::_SENSOR_MODEL_NAME, UsgsAstroLsSensorModel::_STATE_KEYWORD}
// };
// Static Instance of itself
// Static Instance of itself
const
UsgsAstroPlugin
UsgsAstroPlugin
::
m_registeredPlugin
;
const
UsgsAstroPlugin
UsgsAstroPlugin
::
m_registeredPlugin
;
...
...
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
sign in
to comment