Skip to content

Commit

Permalink
fix: add namespace
Browse files Browse the repository at this point in the history
Signed-off-by: Masahiro Kubota <[email protected]>
  • Loading branch information
masahiro-kubota committed Jul 4, 2024
1 parent ad1581f commit f324738
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/autoware_practice_visualization/src/marker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
#include "marker.hpp"

#include <memory>
namespace autoware_practice_visualization
{

TrajectoryVisualizer::TrajectoryVisualizer(const rclcpp::NodeOptions & options) : Node("marker", options)
{
Expand Down Expand Up @@ -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);
Expand Down
4 changes: 4 additions & 0 deletions src/autoware_practice_visualization/src/marker.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
#include <autoware_practice_msgs/msg/float_grid.hpp>
#include <visualization_msgs/msg/marker_array.hpp>

namespace autoware_practice_visualization
{
class TrajectoryVisualizer : public rclcpp::Node
{
public:
Expand All @@ -41,4 +43,6 @@ class TrajectoryVisualizer : public rclcpp::Node
rclcpp::Publisher<visualization_msgs::msg::MarkerArray>::SharedPtr costmap_marker_pub_;
};

} // namespace autoware_practice_visualization

#endif // MARKER_HPP_

0 comments on commit f324738

Please sign in to comment.