Skip to content

Commit

Permalink
fix: fix missing namespaces in C++ code (#9477)
Browse files Browse the repository at this point in the history
Signed-off-by: Esteve Fernandez <esteve.fernandez@tier4.jp>
  • Loading branch information
esteve authored Nov 27, 2024
1 parent 24ef1f9 commit bf9b1c2
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 6 deletions.
2 changes: 1 addition & 1 deletion common/autoware_component_interface_tools/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ ament_auto_add_library(${PROJECT_NAME} SHARED
)

rclcpp_components_register_node(${PROJECT_NAME}
PLUGIN "ServiceLogChecker"
PLUGIN "autoware::component_interface_tools::ServiceLogChecker"
EXECUTABLE service_log_checker_node
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
#define FMT_HEADER_ONLY
#include <fmt/format.h>

namespace autoware::component_interface_tools
{
ServiceLogChecker::ServiceLogChecker(const rclcpp::NodeOptions & options)
: Node("service_log_checker", options), diagnostics_(this)
{
Expand Down Expand Up @@ -98,6 +100,6 @@ void ServiceLogChecker::update_diagnostics(diagnostic_updater::DiagnosticStatusW
stat.summary(DiagnosticStatus::ERROR, "ERROR");
}
}

} // namespace autoware::component_interface_tools
#include <rclcpp_components/register_node_macro.hpp>
RCLCPP_COMPONENTS_REGISTER_NODE(ServiceLogChecker)
RCLCPP_COMPONENTS_REGISTER_NODE(autoware::component_interface_tools::ServiceLogChecker)
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
#include <string>
#include <unordered_map>

namespace autoware::component_interface_tools
{
class ServiceLogChecker : public rclcpp::Node
{
public:
Expand All @@ -38,5 +40,5 @@ class ServiceLogChecker : public rclcpp::Node
void update_diagnostics(diagnostic_updater::DiagnosticStatusWrapper & stat);
std::unordered_map<std::string, std::string> errors_;
};

} // namespace autoware::component_interface_tools
#endif // SERVICE_LOG_CHECKER_HPP_
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ ament_auto_add_library(${PROJECT_NAME} SHARED
)

rclcpp_components_register_node(${PROJECT_NAME}
PLUGIN "TrafficLightRecognitionMarkerPublisher"
PLUGIN "autoware::traffic_light_recognition_marker_publisher::TrafficLightRecognitionMarkerPublisher"
EXECUTABLE ${PROJECT_NAME}_node
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
#include <utility>
#include <vector>

namespace autoware::traffic_light_recognition_marker_publisher
{
TrafficLightRecognitionMarkerPublisher::TrafficLightRecognitionMarkerPublisher(
const rclcpp::NodeOptions & options)
: Node("traffic_light_recognition_marker_publisher", options)
Expand Down Expand Up @@ -159,6 +161,8 @@ std_msgs::msg::ColorRGBA TrafficLightRecognitionMarkerPublisher::getTrafficLight

return c; // white
}
} // namespace autoware::traffic_light_recognition_marker_publisher

#include <rclcpp_components/register_node_macro.hpp>
RCLCPP_COMPONENTS_REGISTER_NODE(TrafficLightRecognitionMarkerPublisher)
RCLCPP_COMPONENTS_REGISTER_NODE(
autoware::traffic_light_recognition_marker_publisher::TrafficLightRecognitionMarkerPublisher)
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
#include <map>
#include <string>

namespace autoware::traffic_light_recognition_marker_publisher
{
class TrafficLightRecognitionMarkerPublisher : public rclcpp::Node
{
public:
Expand Down Expand Up @@ -58,5 +60,6 @@ class TrafficLightRecognitionMarkerPublisher : public rclcpp::Node
bool is_map_ready_ = false;
int32_t marker_id = 0;
};
} // namespace autoware::traffic_light_recognition_marker_publisher

#endif // TRAFFIC_LIGHT_RECOGNITION_MARKER_PUBLISHER_HPP_

0 comments on commit bf9b1c2

Please sign in to comment.