Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
wolf_ros_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_ros
wolf_ros_gnss
Commits
1de51d0b
Commit
1de51d0b
authored
4 years ago
by
Joan Vallvé Navarro
Browse files
Options
Downloads
Patches
Plain Diff
debugging
parent
f36898ae
No related branches found
No related tags found
2 merge requests
!3
After cmake and const refactor
,
!1
new release
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/subscriber_gnss_receiver.cpp
+25
-1
25 additions, 1 deletion
src/subscriber_gnss_receiver.cpp
with
25 additions
and
1 deletion
src/subscriber_gnss_receiver.cpp
+
25
−
1
View file @
1de51d0b
...
...
@@ -241,6 +241,8 @@ void SubscriberGnssReceiver::publishFixComp()
GnssUtils
::
Options
comp_pos_opt
=
compute_pos_opt_
;
WOLF_DEBUG
(
"COMPARING RTKLIB pntpos CONFIGURATIONS /////////////////"
);
for
(
auto
comp
:
comp_options_
)
{
if
(
publishers_pose_
.
at
(
comp
).
getNumSubscribers
()
==
0
and
...
...
@@ -300,11 +302,32 @@ void SubscriberGnssReceiver::publishFixComp()
else
if
(
comp
[
2
]
==
'2'
)
comp_pos_opt
.
ionoopt
=
IONOOPT_IFLC
;
WOLF_DEBUG
(
"opt "
,
comp
,
": "
,
" RAIM: "
,
comp_pos_opt
.
raim
,
" EPH: "
,
comp_pos_opt
.
sateph
,
" IONO: "
,
comp_pos_opt
.
ionoopt
,
" TROP: "
,
comp_pos_opt
.
tropopt
)
//std::cout << "//////////// Computing fix comp = " << comp << std::endl;
auto
fix
=
GnssUtils
::
computePos
(
receiver_
->
getObservations
(),
receiver_
->
getNavigation
(),
comp_pos_opt
);
WOLF_INFO_COND
(
not
fix
.
success
,
"computePos failed (opt "
,
comp
,
") with msg: "
,
fix
.
msg
);
// print
#ifdef _WOLF_DEBUG
std
::
string
discarded_str
,
used_str
;
for
(
auto
sat
:
fix
.
discarded_sats
)
discarded_str
+=
std
::
to_string
(
sat
)
+
" "
;
for
(
auto
sat
:
fix
.
used_sats
)
used_str
+=
std
::
to_string
(
sat
)
+
" "
;
#endif
WOLF_INFO_COND
(
not
fix
.
success
,
"computePos failed (opt "
,
comp
,
") with msg: "
,
fix
.
msg
,
"
\n\t
used sats: "
,
fix
.
used_sats
.
size
(),
" ("
,
used_str
,
")"
,
"
\n\t
discarded sats: "
,
fix
.
discarded_sats
.
size
(),
" ("
,
discarded_str
,
")"
);
WOLF_DEBUG_COND
(
fix
.
success
,
"computePos succeed (opt "
,
comp
,
")"
,
"
\n\t
used sats: "
,
fix
.
used_sats
.
size
(),
" ("
,
used_str
,
")"
,
"
\n\t
discarded sats: "
,
fix
.
discarded_sats
.
size
(),
" ("
,
discarded_str
,
")"
);
//std::cout << "//////////// Computed" << std::endl;
...
...
@@ -327,6 +350,7 @@ void SubscriberGnssReceiver::publishFixComp()
last_fixes_ok_
.
at
(
comp
)
=
fix
.
success
;
last_fixes_pose_
.
at
(
comp
)
=
pose_msg
;
}
WOLF_DEBUG
(
"////////////////////////////////////////////////"
);
}
void
SubscriberGnssReceiver
::
fillMsgs
(
const
geometry_msgs
::
Pose
pose
,
const
std
::
string
&
comp
)
...
...
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