Skip to content

Commit 8adce2b

Browse files
committed
fix
Signed-off-by: MasatoSaeki <masato.saeki@tier4.jp>
1 parent 3db7713 commit 8adce2b

File tree

5 files changed

+14
-16
lines changed

5 files changed

+14
-16
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,23 @@
1-
# The `autoware_traffic_light_selector` Package
1+
`autoware_traffic_light_selector`
22

33
## Overview
44

5-
`autoware_traffic_light_selector` selects the interest traffic light from the list of detected traffic lights by deep learning neural network (DNN) based on the expect ROIs and rough ROIs information and then assign traffic_light_id for them.
5+
`autoware_traffic_light_selector` selects the interest traffic light from the list of accurately detected traffic lights by something (e.g. deep learning neural network) based on the expect ROIs and rough ROIs information and then assign traffic_light_id for them.
66

77
## Input topics
88

99
| Name | Type | Description |
1010
| --------------------- | ------------------------------------------------------ | -------------------------------------------------------------------- |
11-
| `input/detected_rois` | tier4_perception_msgs::msg::DetectedObjectsWithFeature | detected traffic light by DNN |
11+
| `input/detected_rois` | tier4_perception_msgs::msg::DetectedObjectsWithFeature | accurately detected traffic light |
1212
| `input/rough_rois` | tier4_perception_msgs::msg::TrafficLightRoiArray | location of traffic lights in image corresponding to the camera info |
1313
| `input/expect_rois` | tier4_perception_msgs::msg::TrafficLightRoiArray | location of traffic lights in image without any offset |
1414

1515
## Output topics
1616

17-
| Name | Type | Description |
18-
| --------------------------- | ------------------------------------------- | ---------------------------------- |
19-
| `output/traffic_light_rois` | tier4_perception_msgs::TrafficLightRoiArray | detected traffic light of interest |
17+
| Name | Type | Description |
18+
| --------------------- | ------------------------------------------- | ------------------------------------------ |
19+
| `output/traffic_rois` | tier4_perception_msgs::TrafficLightRoiArray | detected traffic light of interest with id |
2020

2121
## Node parameters
2222

2323
{{json_to_markdown("perception/autoware_traffic_light_selector/schema/traffic_light_selector.schema.json")}}
24-
25-
N/A
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
<launch>
2-
<arg name="output/traffic_light_rois" default="output/traffic_light_rois"/>
32
<arg name="input/detected_rois" default="input/detected_rois"/>
43
<arg name="input/rough_rois" default="input/rough_rois"/>
54
<arg name="input/camera_info" default="input/camera_info"/>
5+
<arg name="output/traffic_rois" default="output/traffic_light_rois"/>
66
<arg name="traffic_light_selector_param_path" default="$(find-pkg-share autoware_traffic_light_selector)/config/traffic_light_selector.param.yaml"/>
77

8-
<node pkg="autoware_traffic_light_selector" exec="traffic_light_selector_node" name="autoware_traffic_light_selector" output="screen">
9-
<remap from="output/traffic_light_rois" to="$(var output/traffic_light_rois)"/>
8+
<node pkg="autoware_traffic_light_selector" exec="traffic_light_selector_node" name="traffic_light_selector" output="screen">
109
<remap from="input/detected_rois" to="$(var input/detected_rois)"/>
1110
<remap from="input/rough_rois" to="$(var input/rough_rois)"/>
1211
<remap from="input/camera_info" to="input/camera_info"/>
12+
<remap from="output/traffic_rois" to="$(var output/traffic_rois)"/>
1313
<param from="$(var traffic_light_selector_param_path)"/>
1414
</node>
1515
</launch>

perception/autoware_traffic_light_selector/package.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<package format="3">
44
<name>autoware_traffic_light_selector</name>
55
<version>0.1.0</version>
6-
<description>The ROS 2 cluster merger package</description>
6+
<description>The ROS 2 autoware_traffic_light_selector package</description>
77
<maintainer email="yukihiro.saito@tier4.jp">Yukihiro Saito</maintainer>
88
<maintainer email="dai.nguyen@tier4.jp">Dai Nguyen</maintainer>
99
<maintainer email="yoshi.ri@tier4.jp">Yoshi Ri</maintainer>

perception/autoware_traffic_light_selector/src/traffic_light_selector_node.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ TrafficLightSelectorNode::TrafficLightSelectorNode(const rclcpp::NodeOptions & n
5555
std::bind(&TrafficLightSelectorNode::cameraInfoCallback, this, _1));
5656
// Publisher
5757
pub_traffic_light_rois_ =
58-
create_publisher<TrafficLightRoiArray>("output/traffic_light_rois", rclcpp::QoS{1});
58+
create_publisher<TrafficLightRoiArray>("output/traffict_rois", rclcpp::QoS{1});
5959
}
6060

6161
void TrafficLightSelectorNode::cameraInfoCallback(

perception/autoware_traffic_light_selector/src/utils.hpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
#ifndef UTILS_HPP_
16-
#define UTILS_HPP_
15+
#ifndef TRAFFIC_LIGHT_SELECTOR_NODE_UTILS_HPP_
16+
#define TRAFFIC_LIGHT_SELECTOR_NODE_UTILS_HPP_
1717

1818
#include <opencv2/core/types.hpp>
1919
#include <opencv2/opencv.hpp>
@@ -70,4 +70,4 @@ cv::Mat shiftAndPaddingImage(cv::Mat & img, int dx, int dy);
7070
} // namespace utils
7171
} // namespace autoware::traffic_light
7272

73-
#endif // UTILS_HPP_
73+
#endif // TRAFFIC_LIGHT_SELECTOR_NODE_UTILS_HPP_

0 commit comments

Comments
 (0)