Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
gnss_utils
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
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
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
labrobotica
algorithms
gnss_utils
Commits
c3f34678
Commit
c3f34678
authored
5 years ago
by
Joan Vallvé Navarro
Browse files
Options
Downloads
Patches
Plain Diff
matrix by reference
parent
5282c071
No related branches found
No related tags found
3 merge requests
!20
new tag
,
!19
new tag
,
!10
Refactor: satellite, snapshot and tdcp
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/gnss_utils/utils/transformations.h
+3
-3
3 additions, 3 deletions
include/gnss_utils/utils/transformations.h
src/utils/transformations.cpp
+3
-3
3 additions, 3 deletions
src/utils/transformations.cpp
with
6 additions
and
6 deletions
include/gnss_utils/utils/transformations.h
+
3
−
3
View file @
c3f34678
...
@@ -17,8 +17,8 @@ namespace GnssUtils
...
@@ -17,8 +17,8 @@ namespace GnssUtils
{
{
Eigen
::
Vector3d
ecefToLatLonAlt
(
const
Eigen
::
Vector3d
&
_ecef
);
Eigen
::
Vector3d
ecefToLatLonAlt
(
const
Eigen
::
Vector3d
&
_ecef
);
Eigen
::
Vector3d
latLonAltToEcef
(
const
Eigen
::
Vector3d
&
_latlon
);
Eigen
::
Vector3d
latLonAltToEcef
(
const
Eigen
::
Vector3d
&
_latlon
);
Eigen
::
Matrix3d
ecefToEnuCov
(
const
Eigen
::
Vector3d
&
_latlon
,
const
Eigen
::
Matrix3d
_cov_ecef
);
Eigen
::
Matrix3d
ecefToEnuCov
(
const
Eigen
::
Vector3d
&
_latlon
,
const
Eigen
::
Matrix3d
&
_cov_ecef
);
Eigen
::
Matrix3d
enuToEcefCov
(
const
Eigen
::
Vector3d
&
_latlon
,
const
Eigen
::
Matrix3d
_cov_enu
);
Eigen
::
Matrix3d
enuToEcefCov
(
const
Eigen
::
Vector3d
&
_latlon
,
const
Eigen
::
Matrix3d
&
_cov_enu
);
void
computeEnuEcefFromEcef
(
const
Eigen
::
Vector3d
&
_t_ECEF_ENU
,
void
computeEnuEcefFromEcef
(
const
Eigen
::
Vector3d
&
_t_ECEF_ENU
,
Eigen
::
Matrix3d
&
R_ENU_ECEF
,
Eigen
::
Matrix3d
&
R_ENU_ECEF
,
...
@@ -28,4 +28,4 @@ void computeEnuEcefFromLatLonAlt(const Eigen::Vector3d& _ENU_latlonalt,
...
@@ -28,4 +28,4 @@ void computeEnuEcefFromLatLonAlt(const Eigen::Vector3d& _ENU_latlonalt,
Eigen
::
Vector3d
&
t_ENU_ECEF
);
Eigen
::
Vector3d
&
t_ENU_ECEF
);
}
// namespace GnssUtils
}
// namespace GnssUtils
#endif // INCLUDE_GNSS_UTILS_UTILS_TRANSFORMATIONS_H_
#endif // INCLUDE_GNSS_UTILS_UTILS_TRANSFORMATIONS_H_
\ No newline at end of file
This diff is collapsed.
Click to expand it.
src/utils/transformations.cpp
+
3
−
3
View file @
c3f34678
...
@@ -21,7 +21,7 @@ Eigen::Vector3d latLonAltToEcef(const Eigen::Vector3d& _latlon)
...
@@ -21,7 +21,7 @@ Eigen::Vector3d latLonAltToEcef(const Eigen::Vector3d& _latlon)
return
ecef
;
return
ecef
;
}
}
Eigen
::
Matrix3d
ecefToEnuCov
(
const
Eigen
::
Vector3d
&
_latlon
,
const
Eigen
::
Matrix3d
_cov_ecef
)
Eigen
::
Matrix3d
ecefToEnuCov
(
const
Eigen
::
Vector3d
&
_latlon
,
const
Eigen
::
Matrix3d
&
_cov_ecef
)
{
{
Eigen
::
Matrix3d
cov_enu
;
Eigen
::
Matrix3d
cov_enu
;
...
@@ -38,7 +38,7 @@ Eigen::Matrix3d ecefToEnuCov(const Eigen::Vector3d& _latlon, const Eigen::Matrix
...
@@ -38,7 +38,7 @@ Eigen::Matrix3d ecefToEnuCov(const Eigen::Vector3d& _latlon, const Eigen::Matrix
return
cov_enu
;
return
cov_enu
;
}
}
Eigen
::
Matrix3d
enuToEcefCov
(
const
Eigen
::
Vector3d
&
_latlon
,
const
Eigen
::
Matrix3d
_cov_enu
)
Eigen
::
Matrix3d
enuToEcefCov
(
const
Eigen
::
Vector3d
&
_latlon
,
const
Eigen
::
Matrix3d
&
_cov_enu
)
{
{
Eigen
::
Matrix3d
cov_ecef
;
Eigen
::
Matrix3d
cov_ecef
;
...
@@ -149,4 +149,4 @@ void computeEnuEcefFromLatLonAlt(const Eigen::Vector3d& _ENU_latlonalt,
...
@@ -149,4 +149,4 @@ void computeEnuEcefFromLatLonAlt(const Eigen::Vector3d& _ENU_latlonalt,
t_ENU_ECEF
=
-
R_ENU_ECEF
*
t_ECEF_ENU
;
t_ENU_ECEF
=
-
R_ENU_ECEF
*
t_ECEF_ENU
;
}
}
}
// namespace GnssUtils
}
// namespace GnssUtils
\ No newline at end of file
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