Skip to content

Commit ac4b4ce

Browse files
committed
feat: implement message_filters package, clean up
Signed-off-by: Berkay Karaman <brkay54@gmail.com>
1 parent 6a80b3b commit ac4b4ce

12 files changed

+1693
-1115
lines changed

tools/reaction_analyzer/CMakeLists.txt

+4
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,12 @@ find_package(Eigen3 REQUIRED)
1010
ament_auto_add_library(reaction_analyzer SHARED
1111
include/reaction_analyzer_node.hpp
1212
src/reaction_analyzer_node.cpp
13+
include/subscriber.hpp
14+
src/subscriber.cpp
1315
include/topic_publisher.hpp
1416
src/topic_publisher.cpp
17+
include/utils.hpp
18+
src/utils.cpp
1519
)
1620

1721
target_include_directories(reaction_analyzer

tools/reaction_analyzer/README.md

+24-23
Original file line numberDiff line numberDiff line change
@@ -112,26 +112,27 @@ the `path_bag_without_object` and `path_bag_with_object` parameters with the pat
112112

113113
## Parameters
114114

115-
| Name | Type | Description |
116-
| ------------------------------------------------------------------ | ------ | --------------------------------------------------------------------------------------------------------------------------------------------- |
117-
| `timer_period` | double | [s] Period for the main processing timer. |
118-
| `published_time_expire_duration` | double | [s] Time horizon of the PublishedTime message vector. |
119-
| `test_iteration` | int | Number of iterations for the test. |
120-
| `output_file_path` | string | Directory path where test results and statictics will be stored. |
121-
| `object_search_radius_offset` | double | [m] Additional radius added to the search area when looking for objects. |
122-
| `spawn_time_after_init` | double | [s] Time delay after initialization before spawning objects. Only valid `perception_planning` mode. |
123-
| `spawn_distance_threshold` | double | [m] Distance threshold for spawning objects. Only valid `planning_control` mode. |
124-
| `spawned_pointcloud_sampling_distance` | double | [m] Sampling distance for point clouds of spawned objects. Only valid `planning_control` mode. |
125-
| `dummy_perception_publisher_period` | double | [s] Publishing period for the dummy perception data. Only valid `planning_control` mode. |
126-
| `first_brake_params.debug_control_commands` | bool | Debug publish flag. |
127-
| `first_brake_params.control_cmd_buffer_time_interval` | double | [s] Time interval for buffering control commands. |
128-
| `first_brake_params.min_number_descending_order_control_cmd` | int | Minimum number of control commands in descending order for triggering brake. |
129-
| `first_brake_params.min_jerk_for_brake_cmd` | double | [m/s³] Minimum jerk value for issuing a brake command. |
130-
| `initialization_pose` | struct | Initial pose of the vehicle, containing `x`, `y`, `z`, `roll`, `pitch`, and `yaw` fields. Only valid `planning_control` mode. |
131-
| `entity_params` | struct | Parameters for entities (e.g., obstacles), containing `x`, `y`, `z`, `roll`, `pitch`, `yaw`, `x_dimension`, `y_dimension`, and `z_dimension`. |
132-
| `goal_pose` | struct | Goal pose of the vehicle, containing `x`, `y`, `z`, `roll`, `pitch`, and `yaw` fields. |
133-
| `topic_publisher.path_bag_without_object` | string | Path to the ROS bag file without objects. Only valid `perception_planning` mode. |
134-
| `topic_publisher.path_bag_with_object` | string | Path to the ROS bag file with objects. Only valid `perception_planning` mode. |
135-
| `topic_publisher.pointcloud_publisher.pointcloud_publisher_type` | string | Defines how the PointCloud2 messages are going to be published. Modes explained above. |
136-
| `topic_publisher.pointcloud_publisher.pointcloud_publisher_period` | double | [s] Publishing period of the PointCloud2 messages. |
137-
| `reaction_chain` | struct | List of the nodes with their topics and topic's message types. |
115+
| Name | Type | Description |
116+
|------------------------------------------------------------------------------|--------|-----------------------------------------------------------------------------------------------------------------------------------------------|
117+
| `timer_period` | double | [s] Period for the main processing timer. |
118+
| `test_iteration` | int | Number of iterations for the test. |
119+
| `output_file_path` | string | Directory path where test results and statictics will be stored. |
120+
| `object_search_radius_offset` | double | [m] Additional radius added to the search area when looking for objects. |
121+
| `spawn_time_after_init` | double | [s] Time delay after initialization before spawning objects. Only valid `perception_planning` mode. |
122+
| `spawn_distance_threshold` | double | [m] Distance threshold for spawning objects. Only valid `planning_control` mode. |
123+
| `spawned_pointcloud_sampling_distance` | double | [m] Sampling distance for point clouds of spawned objects. Only valid `planning_control` mode. |
124+
| `dummy_perception_publisher_period` | double | [s] Publishing period for the dummy perception data. Only valid `planning_control` mode. |
125+
| `initialization_pose` | struct | Initial pose of the vehicle, containing `x`, `y`, `z`, `roll`, `pitch`, and `yaw` fields. Only valid `planning_control` mode. |
126+
| `entity_params` | struct | Parameters for entities (e.g., obstacles), containing `x`, `y`, `z`, `roll`, `pitch`, `yaw`, `x_dimension`, `y_dimension`, and `z_dimension`. |
127+
| `goal_pose` | struct | Goal pose of the vehicle, containing `x`, `y`, `z`, `roll`, `pitch`, and `yaw` fields. |
128+
| `topic_publisher.path_bag_without_object` | string | Path to the ROS bag file without objects. Only valid `perception_planning` mode. |
129+
| `topic_publisher.path_bag_with_object` | string | Path to the ROS bag file with objects. Only valid `perception_planning` mode. |
130+
| `topic_publisher.pointcloud_publisher.pointcloud_publisher_type` | string | Defines how the PointCloud2 messages are going to be published. Modes explained above. |
131+
| `topic_publisher.pointcloud_publisher.pointcloud_publisher_period` | double | [s] Publishing period of the PointCloud2 messages. |
132+
| `reaction_params.first_brake_params.debug_control_commands` | bool | Debug publish flag. |
133+
| `reaction_params.first_brake_params.control_cmd_buffer_time_interval` | double | [s] Time interval for buffering control commands. |
134+
| `reaction_params.first_brake_params.min_number_descending_order_control_cmd` | int | Minimum number of control commands in descending order for triggering brake. |
135+
| `reaction_params.first_brake_params.min_jerk_for_brake_cmd` | double | [m/s³] Minimum jerk value for issuing a brake command. |
136+
| `reaction_params.search_zero_vel_params.max_looking_distance` | double | [m] Maximum looking distance for zero velocity on trajectory |
137+
| `reaction_params.search_entity_params.search_radius` | double | [m] Searching radius for spawned entity. Distance between ego pose and entity pose. |
138+
| `reaction_chain` | struct | List of the nodes with their topics and topic's message types. |

0 commit comments

Comments
 (0)