Skip to content

Commit

Permalink
Fixed timestamp related bug found by @cfneuhaus, which was described …
Browse files Browse the repository at this point in the history
  • Loading branch information
Andre Volk committed Dec 4, 2017
1 parent bb8401b commit f2f168c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion velodyne_driver/src/driver/driver.cc
Expand Up @@ -185,7 +185,7 @@ bool VelodyneDriver::poll(void)

// publish message using time of last packet read
ROS_DEBUG("Publishing a full Velodyne scan.");
scan->header.stamp = scan->packets[config_.npackets - 1].stamp;
scan->header.stamp = scan->packets.back().stamp;
scan->header.frame_id = config_.frame_id;
output_.publish(scan);

Expand Down

0 comments on commit f2f168c

Please sign in to comment.