Skip to content

Commit

Permalink
refactor(detected_object_validation): rework parameters
Browse files Browse the repository at this point in the history
Signed-off-by: batuhanbeytekin <[email protected]>
Signed-off-by: Batuhan Beytekin <[email protected]>
  • Loading branch information
batuhanbeytekin committed Sep 2, 2024
1 parent 8f49ed8 commit bd422e9
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 44 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0"?>
<launch>
<arg name="input/object" default="in_objects"/>
<arg name="output/object" default="out_objects"/>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0"?>
<?xml version="1.0" encoding="UTF-8"?>
<launch>
<arg name="input/detected_objects" default="/perception/object_recognition/detection/objects"/>
<arg name="input/obstacle_pointcloud" default="/perception/obstacle_segmentation/pointcloud"/>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0"?>
<?xml version="1.0" encoding="UTF-8"?>
<launch>
<arg name="input/detected_objects" default="/perception/object_recognition/detection/objects"/>
<arg name="output/objects" default="/perception/object_recognition/detection/validation/occupancy_grid_based/objects"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"properties": {
"UNKNOWN": {
"type": "boolean",
"default": false,
"default": true,
"description": "If true, unknown objects are filtered."
},
"CAR": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,71 +3,51 @@
"title": "Parameters for Object Position Filter",
"type": "object",
"definitions": {
"object_position_filter": {
"object_position_filter_params": {
"type": "object",
"properties": {
"upper_bound_x": {
"type": "number",
"default": 100.0,
"description": "Bound for filtering. Only used if filter_by_xy_position is true"
},
"upper_bound_y": {
"type": "number",
"default": 50.0,
"description": "Bound for filtering. Only used if filter_by_xy_position is true"
},
"lower_bound_x": {
"type": "number",
"default": 0.0,
"description": "Bound for filtering. Only used if filter_by_xy_position is true"
},
"lower_bound_y": {
"type": "number",
"default": -50.0,
"description": "Bound for filtering. Only used if filter_by_xy_position is true"
},
"filter_target_label": {
"type": "object",
"properties": {
"UNKNOWN": {
"type": "boolean",
"default": false,
"description": "If true, unknown objects are filtered."
"default": true,
"description": "Filter for UNKNOWN label"
},
"CAR": {
"type": "boolean",
"default": false,
"description": "If true, car objects are filtered."
"description": "Filter for CAR label"
},
"TRUCK": {
"type": "boolean",
"default": false,
"description": "If true, truck objects are filtered."
"description": "Filter for TRUCK label"
},
"BUS": {
"type": "boolean",
"default": false,
"description": "If true, bus objects are filtered."
"description": "Filter for BUS label"
},
"TRAILER": {
"type": "boolean",
"default": false,
"description": "If true, trailer objects are filtered."
"description": "Filter for TRAILER label"
},
"MOTORCYCLE": {
"type": "boolean",
"default": false,
"description": "If true, motorcycle objects are filtered."
"description": "Filter for MOTORCYCLE label"
},
"BICYCLE": {
"type": "boolean",
"default": false,
"description": "If true, bicycle objects are filtered."
"description": "Filter for BICYCLE label"
},
"PEDESTRIAN": {
"type": "boolean",
"default": false,
"description": "If true, pedestrian objects are filtered."
"description": "Filter for PEDESTRIAN label"
}
},
"required": [
Expand All @@ -80,30 +60,47 @@
"BICYCLE",
"PEDESTRIAN"
]
},
"upper_bound_x": {
"type": "number",
"default": 100.0,
"description": "Upper bound for X coordinate"
},
"lower_bound_x": {
"type": "number",
"default": 0.0,
"description": "Lower bound for X coordinate"
},
"upper_bound_y": {
"type": "number",
"default": 10.0,
"description": "Upper bound for Y coordinate"
},
"lower_bound_y": {
"type": "number",
"default": -10.0,
"description": "Lower bound for Y coordinate"
}
},
"required": [
"filter_target_label",
"upper_bound_x",
"upper_bound_y",
"lower_bound_x",
"lower_bound_y",
"filter_target_label"
],
"additionalProperties": false
"upper_bound_y",
"lower_bound_y"
]
}
},
"properties": {
"/**": {
"type": "object",
"properties": {
"ros__parameters": {
"$ref": "#/definitions/object_position_filter"
"$ref": "#/definitions/object_position_filter_params"
}
},
"required": ["ros__parameters"],
"additionalProperties": false
"required": ["ros__parameters"]
}
},
"required": ["/**"],
"additionalProperties": false
"required": ["/**"]
}

0 comments on commit bd422e9

Please sign in to comment.