Skip to content

Commit

Permalink
fix launch file. Added namespace
Browse files Browse the repository at this point in the history
Signed-off-by: Esteve Fernandez <[email protected]>
  • Loading branch information
esteve committed Nov 20, 2024
1 parent 4180cc0 commit adcb1b2
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
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
@@ -1,5 +1,5 @@
<launch>
<node pkg="traffic_light_recognition_marker_publisher" exec="traffic_light_recognition_marker_publisher_node" name="traffic_light_recognition_marker_publisher">
<node pkg="autoware_traffic_light_recognition_marker_publisher" exec="autoware_traffic_light_recognition_marker_publisher_node" name="traffic_light_recognition_marker_publisher">
<remap from="~/input/lanelet2_map" to="/map/vector_map"/>
<remap from="~/input/traffic_signals" to="/perception/traffic_light_recognition/traffic_signals"/>
<remap from="~/output/marker" to="/perception/traffic_light_recognition/traffic_signals_marker"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
#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 +162,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(

Check warning on line 168 in common/autoware_traffic_light_recognition_marker_publisher/src/traffic_light_recognition_marker_publisher.cpp

View check run for this annotation

Codecov / codecov/patch

common/autoware_traffic_light_recognition_marker_publisher/src/traffic_light_recognition_marker_publisher.cpp#L168

Added line #L168 was not covered by tests
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 adcb1b2

Please sign in to comment.