Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
its
lidar_motion_correction
Commits
f7ecfa1b
Commit
f7ecfa1b
authored
Nov 22, 2019
by
Stewart Worrall
Browse files
updated the h264 bag playback callbacks, fixed a bug with the velodyne_correction
parent
20921f9a
Changes
2
Hide whitespace changes
Inline
Side-by-side
corrected_bag_playback/src/corrected_bag_playback.cpp
View file @
f7ecfa1b
...
...
@@ -49,15 +49,16 @@ public:
private_nh
.
setParam
(
"bag_file"
,
bag_file
);
}
void
SendTo
Publisher
(
ros
::
Publisher
&
publisher
,
rosbag
::
MessageInstance
message
)
{
void
Message
Publisher
(
ros
::
Publisher
&
publisher
,
rosbag
::
MessageInstance
message
)
{
auto
lidar_msg
=
message
.
instantiate
<
velodyne_msgs
::
VelodyneScan
>
();
if
(
lidar_msg
&&
message
.
getTopic
()
==
"/velodyne/front/velodyne_packets"
)
{
correction_pipeline
.
receive_message
(
lidar_msg
);
}
// if you want to publish all of the bag topics, include the following line
publisher
.
publish
(
message
);
else
{
// if you want to publish all of the bag topics, include the following line
publisher
.
publish
(
message
);
}
}
CorrectionPipeline
correction_pipeline
;
...
...
@@ -79,7 +80,7 @@ public:
private_nh
.
setParam
(
"bag_file"
,
bag_file
);
}
void
SendTo
Publisher
(
ros
::
Publisher
&
publisher
,
rosbag
::
MessageInstance
message
)
{
void
Message
Publisher
(
ros
::
Publisher
&
publisher
,
rosbag
::
MessageInstance
message
)
{
auto
tf_msg
=
message
.
instantiate
<
tf2_msgs
::
TFMessage
>
();
if
(
tf_msg
&&
message
.
getTopic
()
==
"/tf_static"
)
{
...
...
velodyne_correction/src/velodyne_correction.cpp
View file @
f7ecfa1b
...
...
@@ -35,7 +35,7 @@ int main(int argc, char **argv) {
VelodyneCorrection
::
VelodyneCorrection
(
std
::
string
param_path
,
std
::
string
frame
)
:
MotionCorrection
(
frame
,
param_path
,
packets_per_scan
)
{
std
::
string
frame
)
:
MotionCorrection
(
param_path
,
frame
,
packets_per_scan
)
{
std
::
string
s_path
;
std
::
stringstream
ss
;
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment