Skip to content

Commit

Permalink
chore: update docs and param file
Browse files Browse the repository at this point in the history
Signed-off-by: badai-nguyen <[email protected]>
  • Loading branch information
badai-nguyen committed Oct 31, 2023
1 parent e3389ee commit 7ad22a7
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,5 @@
min_points_and_distance_ratio:
#UNKNOWN, CAR, TRUCK, BUS, TRAILER, MOTORBIKE, BICYCLE, PEDESTRIAN
[800.0, 800.0, 800.0, 800.0, 800.0, 800.0, 800.0, 800.0]

using_2d_validator: false
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,5 @@
<remap from="~/output/objects" to="$(var output/objects)"/>
<param name="enable_debugger" value="false"/>
<param from="$(var obstacle_pointcloud_based_validator_param_path)"/>
<param name="using_2d_validator" value="true"/>
</node>
</launch>
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ In the debug image above, the red DetectedObject is the validated object. The bl

| Name | Type | Description |
| ------------------------------- | ----- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `using_2d_validator` | bool | The xy-plane projected (2D) obstacle point clouds will be used for validation |
| `min_points_num` | int | The minimum number of obstacle point clouds in DetectedObjects |
| `max_points_num` | int | The max number of obstacle point clouds in DetectedObjects |
| `min_points_and_distance_ratio` | float | Threshold value of the number of point clouds per object when the distance from baselink is 1m, because the number of point clouds varies with the distance from baselink. |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ ObstaclePointCloudBasedValidator::ObstaclePointCloudBasedValidator(
using std::placeholders::_1;
using std::placeholders::_2;

// TODO(badai-nguyen): change to single bind function
if (using_2d_validator_) {
sync_.registerCallback(
std::bind(&ObstaclePointCloudBasedValidator::onObjectsAndObstaclePointCloud, this, _1, _2));
Expand Down

0 comments on commit 7ad22a7

Please sign in to comment.