From f324738fc5c674727d61477f396aecddf3a93b98 Mon Sep 17 00:00:00 2001 From: Masahiro Kubota Date: Thu, 4 Jul 2024 18:16:42 +0900 Subject: [PATCH] fix: add namespace Signed-off-by: Masahiro Kubota --- src/autoware_practice_visualization/src/marker.cpp | 4 ++++ src/autoware_practice_visualization/src/marker.hpp | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/src/autoware_practice_visualization/src/marker.cpp b/src/autoware_practice_visualization/src/marker.cpp index cb4136b..d83cbf1 100644 --- a/src/autoware_practice_visualization/src/marker.cpp +++ b/src/autoware_practice_visualization/src/marker.cpp @@ -15,6 +15,8 @@ #include "marker.hpp" #include +namespace autoware_practice_visualization +{ TrajectoryVisualizer::TrajectoryVisualizer(const rclcpp::NodeOptions & options) : Node("marker", options) { @@ -176,6 +178,8 @@ void TrajectoryVisualizer::costmapCallback(const autoware_practice_msgs::msg::Fl candidate_marker_pub_->publish(marker_array); } +} // namespace autoware_practice_visualization + int main(int argc, char ** argv) { rclcpp::init(argc, argv); diff --git a/src/autoware_practice_visualization/src/marker.hpp b/src/autoware_practice_visualization/src/marker.hpp index bd07b8b..f0f7244 100644 --- a/src/autoware_practice_visualization/src/marker.hpp +++ b/src/autoware_practice_visualization/src/marker.hpp @@ -20,6 +20,8 @@ #include #include +namespace autoware_practice_visualization +{ class TrajectoryVisualizer : public rclcpp::Node { public: @@ -41,4 +43,6 @@ class TrajectoryVisualizer : public rclcpp::Node rclcpp::Publisher::SharedPtr costmap_marker_pub_; }; +} // namespace autoware_practice_visualization + #endif // MARKER_HPP_