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
788296d5
Commit
788296d5
authored
5 years ago
by
Joan Vallvé Navarro
Browse files
Options
Downloads
Patches
Plain Diff
added infos for debugging
parent
84417724
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/wolf_subscriber_gnss_ublox.cpp
+12
-1
12 additions, 1 deletion
src/wolf_subscriber_gnss_ublox.cpp
with
12 additions
and
1 deletion
src/wolf_subscriber_gnss_ublox.cpp
+
12
−
1
View file @
788296d5
...
...
@@ -17,11 +17,19 @@ void WolfSubscriberGnssUblox::initSubscriber(ros::NodeHandle& nh, const std::str
void
WolfSubscriberGnssUblox
::
callback
(
const
std_msgs
::
UInt8MultiArray
&
msg
)
{
ROS_INFO
(
"Ublox data stream callback!"
);
GNSSUtils
::
RawDataType
res
=
ublox_raw_
.
addDataStream
(
msg
.
data
);
// only create capture if observation is received
if
(
ublox_raw_
.
addDataStream
(
msg
.
data
)
==
GNSSUtils
::
OBS
)
if
(
res
==
GNSSUtils
::
OBS
)
{
ROS_INFO
(
"Observation received!"
);
GNSSUtils
::
ObservationsPtr
obs_ptr
=
std
::
make_shared
<
GNSSUtils
::
Observations
>
(
ublox_raw_
.
getObservations
());
ROS_INFO
(
"Observations copied!"
);
GNSSUtils
::
NavigationPtr
nav_ptr
=
std
::
make_shared
<
GNSSUtils
::
Navigation
>
(
ublox_raw_
.
getNavigation
());
ROS_INFO
(
"Navigation copied!"
);
ros
::
Time
now
=
ros
::
Time
::
now
();
...
...
@@ -29,7 +37,10 @@ void WolfSubscriberGnssUblox::callback(const std_msgs::UInt8MultiArray& msg)
sensor_ptr_
,
obs_ptr
,
nav_ptr
);
ROS_INFO
(
"Capture GNSS created!"
);
cap_gnss_ptr
->
process
();
ROS_INFO
(
"Capture GNSS processed!"
);
}
}
std
::
shared_ptr
<
WolfSubscriber
>
WolfSubscriberGnssUblox
::
create
(
const
std
::
string
&
_unique_name
,
const
ParamsServer
&
_params
,
const
SensorBasePtr
_sensor_ptr
)
...
...
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