forked from autowarefoundation/autoware.universe
-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1199 from tier4/hotfix/shape_estimation
fix(shape estimation): 5330 + 6157 + 6598
- Loading branch information
Showing
8 changed files
with
94 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -64,4 +64,5 @@ rclcpp_components_register_node(shape_estimation_node | |
|
||
ament_auto_package(INSTALL_TO_SHARE | ||
launch | ||
config | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
perception/shape_estimation/config/shape_estimation.param.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/**: | ||
ros__parameters: | ||
use_corrector: true | ||
use_filter: true | ||
use_vehicle_reference_yaw: false | ||
use_vehicle_reference_shape_size: false | ||
use_boost_bbox_optimizer: false | ||
fix_filtered_objects_label_to_unknown: true |
13 changes: 4 additions & 9 deletions
13
perception/shape_estimation/launch/shape_estimation.launch.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,13 @@ | ||
<launch> | ||
<arg name="input/objects" default="labeled_clusters"/> | ||
<arg name="output/objects" default="shape_estimated_objects"/> | ||
<arg name="use_filter" default="true"/> | ||
<arg name="use_corrector" default="true"/> | ||
<arg name="node_name" default="shape_estimation"/> | ||
<arg name="use_vehicle_reference_yaw" default="false"/> | ||
<arg name="use_vehicle_reference_shape_size" default="false"/> | ||
<arg name="use_boost_bbox_optimizer" default="false"/> | ||
<!-- Parameter --> | ||
<arg name="config_file" default="$(find-pkg-share shape_estimation)/config/shape_estimation.param.yaml"/> | ||
|
||
<node pkg="shape_estimation" exec="shape_estimation" name="$(var node_name)" output="screen"> | ||
<remap from="input" to="$(var input/objects)"/> | ||
<remap from="objects" to="$(var output/objects)"/> | ||
<param name="use_filter" value="$(var use_filter)"/> | ||
<param name="use_corrector" value="$(var use_corrector)"/> | ||
<param name="use_vehicle_reference_yaw" value="$(var use_vehicle_reference_yaw)"/> | ||
<param name="use_boost_bbox_optimizer" value="$(var use_boost_bbox_optimizer)"/> | ||
<param from="$(var config_file)"/> | ||
</node> | ||
</launch> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
56 changes: 56 additions & 0 deletions
56
perception/shape_estimation/schema/shape_estimation.schema.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"title": "Parameters for Shape Estimation Node", | ||
"type": "object", | ||
"definitions": { | ||
"shape_estimation": { | ||
"type": "object", | ||
"properties": { | ||
"use_corrector": { | ||
"type": "boolean", | ||
"description": "The flag to apply rule-based corrector.", | ||
"default": "true" | ||
}, | ||
"use_filter": { | ||
"type": "boolean", | ||
"description": "The flag to apply rule-based filter", | ||
"default": "true" | ||
}, | ||
"use_vehicle_reference_yaw": { | ||
"type": "boolean", | ||
"description": "The flag to use vehicle reference yaw for corrector", | ||
"default": "false" | ||
}, | ||
"use_vehicle_reference_shape_size": { | ||
"type": "boolean", | ||
"description": "The flag to use vehicle reference shape size", | ||
"default": "false" | ||
}, | ||
"use_boost_bbox_optimizer": { | ||
"type": "boolean", | ||
"description": "The flag to use boost bbox optimizer", | ||
"default": "false" | ||
} | ||
}, | ||
"required": [ | ||
"use_corrector", | ||
"use_filter", | ||
"use_vehicle_reference_yaw", | ||
"use_vehicle_reference_shape_size", | ||
"use_boost_bbox_optimizer" | ||
] | ||
} | ||
}, | ||
"properties": { | ||
"/**": { | ||
"type": "object", | ||
"properties": { | ||
"ros__parameters": { | ||
"$ref": "#/definitions/shape_estimation" | ||
} | ||
}, | ||
"required": ["ros__parameters"] | ||
} | ||
}, | ||
"required": ["/**"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters