Skip to content

Commit d8b3fd7

Browse files
committed
feat: update
Signed-off-by: Berkay Karaman <brkay54@gmail.com>
1 parent 9262914 commit d8b3fd7

File tree

5 files changed

+76
-65
lines changed

5 files changed

+76
-65
lines changed

tools/reaction_analyzer/include/reaction_analyzer_node.hpp

+3
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,11 @@
4747

4848
#include <memory>
4949
#include <mutex>
50+
#include <string>
51+
#include <unordered_map>
5052
#include <utility>
5153
#include <variant>
54+
#include <vector>
5255

5356
namespace reaction_analyzer
5457
{

tools/reaction_analyzer/include/subscriber.hpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,11 @@
4545

4646
#include <memory>
4747
#include <mutex>
48+
#include <string>
49+
#include <unordered_map>
4850
#include <utility>
4951
#include <variant>
52+
#include <vector>
5053

5154
namespace reaction_analyzer::subscriber
5255
{
@@ -107,7 +110,6 @@ enum class SubscriberMessageType {
107110
};
108111

109112
// Reaction Types
110-
// TODO: For the future work, we can add more reaction types e.g. first shifted trajectory.
111113
enum class ReactionType {
112114
UNKNOWN = 0,
113115
FIRST_BRAKE = 1,

tools/reaction_analyzer/include/topic_publisher.hpp

+3
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,11 @@
3838

3939
#include <memory>
4040
#include <mutex>
41+
#include <string>
42+
#include <unordered_map>
4143
#include <utility>
4244
#include <variant>
45+
#include <vector>
4346

4447
namespace reaction_analyzer::topic_publisher
4548
{

tools/reaction_analyzer/include/utils.hpp

+3
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@
2121
#include <autoware_auto_planning_msgs/msg/trajectory.hpp>
2222

2323
#include <string>
24+
#include <tuple>
25+
#include <unordered_map>
26+
#include <vector>
2427

2528
// The reaction_analyzer namespace contains utility functions for the Reaction Analyzer tool.
2629
namespace reaction_analyzer

tools/reaction_analyzer/param/reaction_analyzer.param.yaml

+64-64
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
ros__parameters:
33
timer_period: 0.033 # s
44
test_iteration: 15
5-
output_file_path: /home/berkay/projects/reaction_analyzer_results/
5+
output_file_path: <PATH>/reaction_analyzer_results/
66
object_search_radius_offset: 0.1 # m
77
spawn_time_after_init: 5.0 # s for perception_planning mode
88
spawn_distance_threshold: 15.0 # m # for planning_control mode
@@ -33,8 +33,8 @@
3333
pitch: 0.0
3434
yaw: 8.9305903
3535
topic_publisher:
36-
path_bag_without_object: /home/berkay/projects/bags/awsim-bag/bag/lexus_bag_without_car/rosbag2_2024_01_30-13_50_45_0.db3
37-
path_bag_with_object: /home/berkay/projects/bags/awsim-bag/bag/lexus_bag_with_car/rosbag2_2024_01_30-13_50_17_0.db3
36+
path_bag_without_object: <PATH_TO_YOUR_BAGS>/lexus_bag_without_car/rosbag2_2024_01_30-13_50_45_0.db3
37+
path_bag_with_object: <PATH_TO_YOUR_BAGS>/lexus_bag_with_car/rosbag2_2024_01_30-13_50_17_0.db3
3838
pointcloud_publisher:
3939
pointcloud_publisher_type: "sync_header_sync_publish" # "async_header_sync_publish", "sync_header_sync_publish" or "async_publish"
4040
pointcloud_publisher_period: 0.1 # s
@@ -51,67 +51,67 @@
5151
search_entity_params:
5252
search_radius: 5.0 # m
5353
reaction_chain:
54-
obstacle_stop_planner:
54+
obstacle_cruise_planner:
5555
topic_name: /planning/scenario_planning/lane_driving/trajectory
5656
time_debug_topic_name: /planning/scenario_planning/lane_driving/trajectory/debug/published_time
5757
message_type: autoware_auto_planning_msgs/msg/Trajectory
58-
# scenario_selector:
59-
# topic_name: /planning/scenario_planning/scenario_selector/trajectory
60-
# time_debug_topic_name: /planning/scenario_planning/scenario_selector/trajectory/debug/published_time
61-
# message_type: autoware_auto_planning_msgs/msg/Trajectory
62-
# motion_velocity_smoother:
63-
# topic_name: /planning/scenario_planning/motion_velocity_smoother/trajectory
64-
# time_debug_topic_name: /planning/scenario_planning/motion_velocity_smoother/trajectory/debug/published_time
65-
# message_type: autoware_auto_planning_msgs/msg/Trajectory
66-
# planning_validator:
67-
# topic_name: /planning/scenario_planning/trajectory
68-
# time_debug_topic_name: /planning/scenario_planning/trajectory/debug/published_time
69-
# message_type: autoware_auto_planning_msgs/msg/Trajectory
70-
# trajectory_follower:
71-
# topic_name: /control/trajectory_follower/control_cmd
72-
# time_debug_topic_name: /control/trajectory_follower/control_cmd/debug/published_time
73-
# message_type: autoware_auto_control_msgs/msg/AckermannControlCommand
74-
# vehicle_cmd_gate:
75-
# topic_name: /control/command/control_cmd
76-
# time_debug_topic_name: /control/command/control_cmd/debug/published_time
77-
# message_type: autoware_auto_control_msgs/msg/AckermannControlCommand
78-
# common_ground_filter:
79-
# topic_name: /perception/obstacle_segmentation/single_frame/pointcloud_raw
80-
# time_debug_topic_name: /perception/obstacle_segmentation/single_frame/pointcloud_raw/debug/published_time
81-
# message_type: sensor_msgs/msg/PointCloud2
82-
# occupancy_grid_map_outlier:
83-
# topic_name: /perception/obstacle_segmentation/pointcloud
84-
# time_debug_topic_name: /perception/obstacle_segmentation/pointcloud/debug/published_time
85-
# message_type: sensor_msgs/msg/PointCloud2
86-
# multi_object_tracker:
87-
# topic_name: /perception/object_recognition/tracking/near_objects
88-
# time_debug_topic_name: /perception/object_recognition/tracking/near_objects/debug/published_time
89-
# message_type: autoware_auto_perception_msgs/msg/TrackedObjects
90-
# lidar_centerpoint:
91-
# topic_name: /perception/object_recognition/detection/centerpoint/objects
92-
# time_debug_topic_name: /perception/object_recognition/detection/centerpoint/objects/debug/published_time
93-
# message_type: autoware_auto_perception_msgs/msg/DetectedObjects
94-
# obstacle_pointcloud_based_validator:
95-
# topic_name: /perception/object_recognition/detection/centerpoint/validation/objects
96-
# time_debug_topic_name: /perception/object_recognition/detection/centerpoint/validation/objects/debug/published_time
97-
# message_type: autoware_auto_perception_msgs/msg/DetectedObjects
98-
# decorative_tracker_merger:
99-
# topic_name: /perception/object_recognition/tracking/objects
100-
# time_debug_topic_name: /perception/object_recognition/tracking/objects/debug/published_time
101-
# message_type: autoware_auto_perception_msgs/msg/TrackedObjects
102-
# detected_object_feature_remover:
103-
# topic_name: /perception/object_recognition/detection/clustering/objects
104-
# time_debug_topic_name: /perception/object_recognition/detection/clustering/objects/debug/published_time
105-
# message_type: autoware_auto_perception_msgs/msg/DetectedObjects
106-
# detection_by_tracker:
107-
# topic_name: /perception/object_recognition/detection/detection_by_tracker/objects
108-
# time_debug_topic_name: /perception/object_recognition/detection/detection_by_tracker/objects/debug/published_time
109-
# message_type: autoware_auto_perception_msgs/msg/DetectedObjects
110-
# object_lanelet_filter:
111-
# topic_name: /perception/object_recognition/detection/objects
112-
# time_debug_topic_name: /perception/object_recognition/detection/objects/debug/published_time
113-
# message_type: autoware_auto_perception_msgs/msg/DetectedObjects
114-
# map_based_prediction:
115-
# topic_name: /perception/object_recognition/objects
116-
# time_debug_topic_name: /perception/object_recognition/objects/debug/published_time
117-
# message_type: autoware_auto_perception_msgs/msg/PredictedObjects
58+
scenario_selector:
59+
topic_name: /planning/scenario_planning/scenario_selector/trajectory
60+
time_debug_topic_name: /planning/scenario_planning/scenario_selector/trajectory/debug/published_time
61+
message_type: autoware_auto_planning_msgs/msg/Trajectory
62+
motion_velocity_smoother:
63+
topic_name: /planning/scenario_planning/motion_velocity_smoother/trajectory
64+
time_debug_topic_name: /planning/scenario_planning/motion_velocity_smoother/trajectory/debug/published_time
65+
message_type: autoware_auto_planning_msgs/msg/Trajectory
66+
planning_validator:
67+
topic_name: /planning/scenario_planning/trajectory
68+
time_debug_topic_name: /planning/scenario_planning/trajectory/debug/published_time
69+
message_type: autoware_auto_planning_msgs/msg/Trajectory
70+
trajectory_follower:
71+
topic_name: /control/trajectory_follower/control_cmd
72+
time_debug_topic_name: /control/trajectory_follower/control_cmd/debug/published_time
73+
message_type: autoware_auto_control_msgs/msg/AckermannControlCommand
74+
vehicle_cmd_gate:
75+
topic_name: /control/command/control_cmd
76+
time_debug_topic_name: /control/command/control_cmd/debug/published_time
77+
message_type: autoware_auto_control_msgs/msg/AckermannControlCommand
78+
common_ground_filter:
79+
topic_name: /perception/obstacle_segmentation/single_frame/pointcloud_raw
80+
time_debug_topic_name: /perception/obstacle_segmentation/single_frame/pointcloud_raw/debug/published_time
81+
message_type: sensor_msgs/msg/PointCloud2
82+
occupancy_grid_map_outlier:
83+
topic_name: /perception/obstacle_segmentation/pointcloud
84+
time_debug_topic_name: /perception/obstacle_segmentation/pointcloud/debug/published_time
85+
message_type: sensor_msgs/msg/PointCloud2
86+
multi_object_tracker:
87+
topic_name: /perception/object_recognition/tracking/near_objects
88+
time_debug_topic_name: /perception/object_recognition/tracking/near_objects/debug/published_time
89+
message_type: autoware_auto_perception_msgs/msg/TrackedObjects
90+
lidar_centerpoint:
91+
topic_name: /perception/object_recognition/detection/centerpoint/objects
92+
time_debug_topic_name: /perception/object_recognition/detection/centerpoint/objects/debug/published_time
93+
message_type: autoware_auto_perception_msgs/msg/DetectedObjects
94+
obstacle_pointcloud_based_validator:
95+
topic_name: /perception/object_recognition/detection/centerpoint/validation/objects
96+
time_debug_topic_name: /perception/object_recognition/detection/centerpoint/validation/objects/debug/published_time
97+
message_type: autoware_auto_perception_msgs/msg/DetectedObjects
98+
decorative_tracker_merger:
99+
topic_name: /perception/object_recognition/tracking/objects
100+
time_debug_topic_name: /perception/object_recognition/tracking/objects/debug/published_time
101+
message_type: autoware_auto_perception_msgs/msg/TrackedObjects
102+
detected_object_feature_remover:
103+
topic_name: /perception/object_recognition/detection/clustering/objects
104+
time_debug_topic_name: /perception/object_recognition/detection/clustering/objects/debug/published_time
105+
message_type: autoware_auto_perception_msgs/msg/DetectedObjects
106+
detection_by_tracker:
107+
topic_name: /perception/object_recognition/detection/detection_by_tracker/objects
108+
time_debug_topic_name: /perception/object_recognition/detection/detection_by_tracker/objects/debug/published_time
109+
message_type: autoware_auto_perception_msgs/msg/DetectedObjects
110+
object_lanelet_filter:
111+
topic_name: /perception/object_recognition/detection/objects
112+
time_debug_topic_name: /perception/object_recognition/detection/objects/debug/published_time
113+
message_type: autoware_auto_perception_msgs/msg/DetectedObjects
114+
map_based_prediction:
115+
topic_name: /perception/object_recognition/objects
116+
time_debug_topic_name: /perception/object_recognition/objects/debug/published_time
117+
message_type: autoware_auto_perception_msgs/msg/PredictedObjects

0 commit comments

Comments
 (0)