-
Notifications
You must be signed in to change notification settings - Fork 657
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor(autoware_pointcloud_preprocessor): rework concatenate_pointcloud and time_synchronizer_node parameters #8509
Changes from 4 commits
5b4abf9
d93cf89
f6b7c87
667d656
08ec218
9b8841c
d323d3a
6381695
f11dce8
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
/**: | ||
ros__parameters: | ||
output_frame: base_link | ||
input_topics: [ | ||
"/sensing/lidar/left/pointcloud_before_sync", | ||
"/sensing/lidar/right/pointcloud_before_sync", | ||
"/sensing/lidar/top/pointcloud_before_sync" | ||
] | ||
max_queue_size: 5 | ||
timeout_sec: 0.033 | ||
input_offset: [0.0 ,0.0 ,0.0] |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/**: | ||
ros__parameters: | ||
input_twist_topic_type: twist | ||
output_frame: base_link | ||
keep_input_frame_in_synchronized_pointcloud: false | ||
input_topics: [ | ||
"/sensing/lidar/left/pointcloud_before_sync", | ||
"/sensing/lidar/right/pointcloud_before_sync", | ||
"/sensing/lidar/top/pointcloud_before_sync" | ||
] | ||
synchronized_pointcloud_postfix: pointcloud | ||
max_queue_size: 5 | ||
timeout_sec: 0.1 | ||
input_offset: [0.0, 0.0, 0.0] |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<launch> | ||
<arg name="output" default="/sensing/lidar/concatenated/pointcloud"/> | ||
<!-- Parameter --> | ||
<arg name="param_file" default="$(find-pkg-share autoware_pointcloud_preprocessor)/config/concatenate_pointclouds.param.yaml"/> | ||
<node pkg="autoware_pointcloud_preprocessor" exec="concatenate_pointclouds_node" name="concatenate_pointclouds_node" output="screen"> | ||
<remap from="output" to="$(var output)"/> | ||
<param from="$(var param_file)"/> | ||
</node> | ||
</launch> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<launch> | ||
<arg name="input/twist" default="/sensing/vehicle_velocity_converter/twist_with_covariance"/> | ||
<!-- Parameter --> | ||
<arg name="param_file" default="$(find-pkg-share autoware_pointcloud_preprocessor)/config/time_synchronizer_node.param.yaml"/> | ||
<node pkg="autoware_pointcloud_preprocessor" exec="time_synchronizer_node" name="time_synchronizer_node" output="screen"> | ||
<remap from="~/input/twist" to="$(var input/twist)"/> | ||
<param from="$(var param_file)"/> | ||
</node> | ||
</launch> |
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 Concatenate Pointclouds Node", | ||
"type": "object", | ||
"definitions": { | ||
"concatenate_pointclouds": { | ||
"type": "object", | ||
"properties": { | ||
"timeout_sec": { | ||
"type": "number", | ||
"default": 0.1, | ||
"description": "Tolerance of time to publish the next pointcloud [s]. When this time limit is exceeded, the filter concatenates and publishes pointcloud, even if not all the point clouds are subscribed." | ||
}, | ||
"input_offset": { | ||
"type": "array", | ||
"items": { | ||
"type": "number" | ||
}, | ||
"default": [], | ||
"description": "This parameter can control waiting time for each input sensor pointcloud [s]. You must to set the same length of offsets with input pointclouds numbers." | ||
}, | ||
"output_frame": { | ||
"type": "string", | ||
"default": "base_link", | ||
"description": "Output frame id." | ||
}, | ||
"input_topics": { | ||
"type": "array", | ||
"items": { | ||
"type": "string" | ||
}, | ||
"default": [], | ||
"description": "List of input topics." | ||
}, | ||
"max_queue_size": { | ||
"type": "integer", | ||
"default": 5, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Assign default values as string |
||
"description": "Max queue size of input/output topics." | ||
} | ||
}, | ||
"required": ["timeout_sec", "input_offset", "output_frame", "input_topics", "max_queue_size"] | ||
} | ||
}, | ||
"properties": { | ||
"/**": { | ||
"type": "object", | ||
"properties": { | ||
"ros__parameters": { | ||
"$ref": "#/definitions/concatenate_pointclouds" | ||
} | ||
}, | ||
"required": ["ros__parameters"] | ||
} | ||
}, | ||
"required": ["/**"] | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"title": "Parameters for Time synchronizer Node", | ||
"type": "object", | ||
"definitions": { | ||
"time_synchronizer": { | ||
"type": "object", | ||
"properties": { | ||
"timeout_sec": { | ||
"type": "number", | ||
"default": 0.033, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Assign default values as string |
||
"description": "Tolerance of time to publish the next pointcloud [s]. When this time limit is exceeded, the filter concatenates and publishes pointcloud, even if not all the point clouds are subscribed." | ||
}, | ||
"input_offset": { | ||
"type": "array", | ||
"items": { | ||
"type": "number" | ||
}, | ||
"default": [], | ||
"description": "This parameter can control waiting time for each input sensor pointcloud [s]. You must to set the same length of offsets with input pointclouds numbers." | ||
}, | ||
"input_twist_topic_type": { | ||
"type": "string", | ||
"enum": ["twist", "odom"], | ||
"default": "twist", | ||
"description": "Topic type for twist. Currently supports 'twist' or 'odom'." | ||
}, | ||
"output_frame": { | ||
"type": "string", | ||
"default": "base_link", | ||
"description": "Output frame." | ||
}, | ||
"keep_input_frame_in_synchronized_pointcloud": { | ||
"type": "boolean", | ||
"default": true, | ||
"description": "Flag to indicate if input frame should be kept in synchronized point cloud." | ||
}, | ||
"input_topics": { | ||
"type": "array", | ||
"items": { | ||
"type": "string" | ||
}, | ||
"default": [], | ||
"description": "List of input topics." | ||
}, | ||
"synchronized_pointcloud_postfix": { | ||
"type": "string", | ||
"default": "pointcloud", | ||
"description": "Postfix for the synchronized point cloud." | ||
}, | ||
"max_queue_size": { | ||
"type": "integer", | ||
"default": 5, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Assign default values as string |
||
"description": "Max queue size of input/output topics." | ||
} | ||
}, | ||
"required": [ | ||
"timeout_sec", | ||
"input_offset", | ||
"input_twist_topic_type", | ||
"output_frame", | ||
"keep_input_frame_in_synchronized_pointcloud", | ||
"input_topics", | ||
"synchronized_pointcloud_postfix", | ||
"max_queue_size" | ||
] | ||
} | ||
}, | ||
"properties": { | ||
"/**": { | ||
"type": "object", | ||
"properties": { | ||
"ros__parameters": { | ||
"$ref": "#/definitions/time_synchronizer" | ||
} | ||
}, | ||
"required": ["ros__parameters"] | ||
} | ||
}, | ||
"required": ["/**"] | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Assign default values as string
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! fixed them in 08ec218