Skip to content

Commit d33b962

Browse files
authored
Add missing timestamp for grid_map message (#46)
Signed-off-by: Ryan Friedman <[email protected]>
1 parent aaffb5c commit d33b962

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/test_tif_loader.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ class MapPublisher : public rclcpp::Node {
6666
private:
6767
void timer_callback() {
6868
auto msg = grid_map::GridMapRosConverter::toMessage(map_->getGridMap());
69+
msg->header.stamp = now();
6970
original_map_pub_->publish(std::move(msg));
7071
}
7172
rclcpp::TimerBase::SharedPtr timer_;

0 commit comments

Comments
 (0)