Commit 1872e9b 1 parent 553ac9a commit 1872e9b Copy full SHA for 1872e9b
File tree 5 files changed +56
-22
lines changed
sensing/livox/livox_tag_filter
src/livox_tag_filter_node
5 files changed +56
-22
lines changed Original file line number Diff line number Diff line change @@ -21,4 +21,5 @@ rclcpp_components_register_node(livox_tag_filter
21
21
22
22
ament_auto_package(INSTALL_TO_SHARE
23
23
launch
24
+ config
24
25
)
Original file line number Diff line number Diff line change
1
+ /** :
2
+ ros__parameters :
3
+ ignore_tags : []
4
+ # bit 0~1: Point property based on spatial position
5
+ # 00: Normal
6
+ # 01: High confidence level of the noise
7
+ # 10: Moderate confidence level of the noise
8
+ # 11: Low confidence level of the noise
9
+ # bit 2~3: Point property based on intensity
10
+ # 00: Normal
11
+ # 01: High confidence level of the noise
12
+ # 10: Moderate confidence level of the noise
13
+ # 11: Reserved
14
+ # bit 4~5: Return number
15
+ # 00: return 0
16
+ # 01: return 1
17
+ # 10: return 2
18
+ # 11: return 3
19
+ # bit 6~7: Reserved
Original file line number Diff line number Diff line change 1
1
<launch >
2
2
<arg name =" input" description =" input topic name" />
3
3
<arg name =" output" description =" output topic name" />
4
-
5
- <!--
6
- bit 0~1: Point property based on spatial position
7
- 00: Normal
8
- 01: High confidence level of the noise
9
- 10: Moderate confidence level of the noise
10
- 11: Low confidence level of the noise
11
- bit 2~3: Point property based on intensity
12
- 00: Normal
13
- 01: High confidence level of the noise
14
- 10: Moderate confidence level of the noise
15
- 11: Reserved
16
- bit 4~5: Return number
17
- 00: return 0
18
- 01: return 1
19
- 10: return 2
20
- 11: return 3
21
- bit 6~7: Reserved
22
- -->
23
- <arg name =" ignore_tags" description =" tags to be ignored(see comments in livox_tag_filter.launch.xml for more details)" />
4
+ <arg name =" param_file" default =" $(find-pkg-share livox_tag_filter)/config/livox_tag_filter.param.yaml" />
24
5
25
6
<node pkg =" livox_tag_filter" exec =" livox_tag_filter_node" name =" livox_tag_filter_node" output =" screen" >
26
7
<remap from =" input" to =" $(var input)" />
27
8
<remap from =" output" to =" $(var output)" />
28
- <param name = " ignore_tags " value = " $(var ignore_tags )" />
9
+ <param from = " $(var param_file )" />
29
10
</node >
30
11
</launch >
Original file line number Diff line number Diff line change
1
+ {
2
+ "$schema" : " http://json-schema.org/draft-07/schema#" ,
3
+ "title" : " Livox Tag Filter Parameters" ,
4
+ "type" : " object" ,
5
+ "definitions" : {
6
+ "livox_tag_filter" : {
7
+ "type" : " object" ,
8
+ "properties" : {
9
+ "ignore_tags" : {
10
+ "type" : " array" ,
11
+ "description" : " ignored tags (int array) (See the table in the readme file)" ,
12
+ "default" : " []"
13
+ }
14
+ },
15
+ "required" : [" ignore_tags" ],
16
+ "additionalProperties" : false
17
+ }
18
+ },
19
+ "properties" : {
20
+ "/**" : {
21
+ "type" : " object" ,
22
+ "properties" : {
23
+ "ros__parameters" : {
24
+ "$ref" : " #/definitions/livox_tag_filter"
25
+ }
26
+ },
27
+ "required" : [" ros__parameters" ],
28
+ "additionalProperties" : false
29
+ }
30
+ },
31
+ "required" : [" /**" ],
32
+ "additionalProperties" : false
33
+ }
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ LivoxTagFilterNode::LivoxTagFilterNode(const rclcpp::NodeOptions & node_options)
40
40
: Node (" livox_tag_filter" , node_options)
41
41
{
42
42
// Parameter
43
- ignore_tags_ = this ->declare_parameter ( " ignore_tags " , std::vector<std::int64_t >{} );
43
+ ignore_tags_ = this ->declare_parameter < std::vector<std::int64_t >>( " ignore_tags " );
44
44
45
45
// Subscriber
46
46
using std::placeholders::_1;
You can’t perform that action at this time.
0 commit comments