Skip to content

Commit 809cdf5

Browse files
committed
feat: add timestamp to header
Signed-off-by: Bart Jimenez Vera <bjv@capra.ooo>
1 parent 3fbd246 commit 809cdf5

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

micro_ros_diagnostic_bridge/src/micro_ros_diagnostic_bridge/micro_ros_diagnostic_bridge.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ MicroROSDiagnosticBridge::MicroROSDiagnosticBridge(const std::string & path)
9292
RCLCPP_DEBUG(get_logger(), "key %s value %s", keyvalue.key.c_str(), keyvalue.value.c_str());
9393
}
9494
msg_out->status.push_back(status_msg);
95+
msg_out->header.stamp = rclcpp::Clock().now();
9596
ros2_diagnostics_pub_->publish(std::move(msg_out));
9697
};
9798

0 commit comments

Comments
 (0)