From 3dc4cd119d2f68a5426a5a07829dea0e45df9923 Mon Sep 17 00:00:00 2001 From: Yu Asabe Date: Thu, 21 Jul 2022 09:12:24 +0900 Subject: [PATCH] add latency_log_file --- include/autoware_v2x/v2x_node.hpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/autoware_v2x/v2x_node.hpp b/include/autoware_v2x/v2x_node.hpp index 4d503d0..e94f393 100644 --- a/include/autoware_v2x/v2x_node.hpp +++ b/include/autoware_v2x/v2x_node.hpp @@ -14,6 +14,7 @@ #include "autoware_v2x/positioning.hpp" #include "autoware_v2x/security.hpp" #include "autoware_v2x/router_context.hpp" +#include namespace v2x { @@ -22,9 +23,11 @@ namespace v2x public: explicit V2XNode(const rclcpp::NodeOptions &node_options); V2XApp *app; - void publishObjects(std::vector *); + void publishObjects(std::vector *, int cpm_num); void publishCpmSenderObject(double, double, double); + std::ofstream latency_log_file; + private: void objectsCallback(const autoware_auto_perception_msgs::msg::PredictedObjects::ConstSharedPtr msg); void tfCallback(const tf2_msgs::msg::TFMessage::ConstSharedPtr msg);