Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
gnss
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor 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
mobile_robotics
wolf_projects
wolf_lib
plugins
gnss
Commits
cb20679e
Commit
cb20679e
authored
2 years ago
by
Joan Vallvé Navarro
Browse files
Options
Downloads
Patches
Plain Diff
changed a little bit the yaml params
parent
a790c290
No related branches found
No related tags found
1 merge request
!39
devel->main
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/gnss/sensor/sensor_gnss.h
+5
-1
5 additions, 1 deletion
include/gnss/sensor/sensor_gnss.h
src/sensor/sensor_gnss.cpp
+3
-1
3 additions, 1 deletion
src/sensor/sensor_gnss.cpp
with
8 additions
and
2 deletions
include/gnss/sensor/sensor_gnss.h
+
5
−
1
View file @
cb20679e
...
...
@@ -52,6 +52,7 @@ struct ParamsSensorGnss : public ParamsSensorBase
bool
yaw_fixed
=
true
;
bool
translation_fixed
=
true
;
Eigen
::
Vector3d
ENU_latlonalt
=
Eigen
::
Vector3d
::
Zero
();
bool
latlon_in_degrees
=
false
;
~
ParamsSensorGnss
()
override
=
default
;
...
...
@@ -71,7 +72,10 @@ struct ParamsSensorGnss : public ParamsSensorBase
yaw_fixed
=
_server
.
getParam
<
bool
>
(
prefix
+
_unique_name
+
"/ENU/yaw_fixed"
);
translation_fixed
=
_server
.
getParam
<
bool
>
(
prefix
+
_unique_name
+
"/ENU/translation_fixed"
);
if
(
ENU_mode
==
"manual"
)
ENU_latlonalt
=
_server
.
getParam
<
Eigen
::
Vector3d
>
(
prefix
+
_unique_name
+
"/ENU_latlonalt"
);
{
ENU_latlonalt
=
_server
.
getParam
<
Eigen
::
Vector3d
>
(
prefix
+
_unique_name
+
"/ENU/latlonalt"
);
latlon_in_degrees
=
_server
.
getParam
<
bool
>
(
prefix
+
_unique_name
+
"/ENU/latlon_in_degrees"
);
}
}
else
if
(
ENU_mode
!=
"ECEF"
)
{
...
...
This diff is collapsed.
Click to expand it.
src/sensor/sensor_gnss.cpp
+
3
−
1
View file @
cb20679e
...
...
@@ -99,7 +99,9 @@ void SensorGnss::setEcefEnu(const Eigen::Vector3d& _ENU, bool _ECEF_coordinates)
if
(
_ECEF_coordinates
)
GnssUtils
::
computeEnuEcefFromEcef
(
_ENU
,
R_ENU_ECEF_
,
t_ENU_ECEF_
);
else
GnssUtils
::
computeEnuEcefFromEcef
(
GnssUtils
::
latLonAltToEcef
(
_ENU
),
R_ENU_ECEF_
,
t_ENU_ECEF_
);
GnssUtils
::
computeEnuEcefFromEcef
(
GnssUtils
::
latLonAltToEcef
(
_ENU
,
not
params_
->
latlon_in_degrees
),
R_ENU_ECEF_
,
t_ENU_ECEF_
);
ENU_defined_
=
true
;
...
...
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