-
Notifications
You must be signed in to change notification settings - Fork 206
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 #189 from eurogroep/feat/ros2-port-all-filters
Feature: ros2 port for all filters
- Loading branch information
Showing
26 changed files
with
2,178 additions
and
265 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
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,20 @@ | ||
from launch import LaunchDescription | ||
from launch.substitutions import PathJoinSubstitution | ||
from launch_ros.actions import Node | ||
from ament_index_python.packages import get_package_share_directory | ||
|
||
|
||
def generate_launch_description(): | ||
return LaunchDescription( | ||
[ | ||
Node( | ||
package="laser_filters", | ||
executable="scan_to_scan_filter_chain", | ||
parameters=[ | ||
PathJoinSubstitution( | ||
[get_package_share_directory("laser_filters"), "examples", "polygon_filter_example.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,10 @@ | ||
scan_to_scan_filter_chain: | ||
ros__parameters: | ||
filter1: | ||
name: polygon_filter | ||
type: laser_filters/LaserScanPolygonFilter | ||
params: | ||
polygon_frame: base_link | ||
polygon: '[[0.0, 0.0], [0.1, 0.1], [0.1, 0.0], [0.0, -0.1]]' | ||
invert: false | ||
footprint_topic: base_footprint_exclude |
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,20 @@ | ||
from launch import LaunchDescription | ||
from launch.substitutions import PathJoinSubstitution | ||
from launch_ros.actions import Node | ||
from ament_index_python.packages import get_package_share_directory | ||
|
||
|
||
def generate_launch_description(): | ||
return LaunchDescription( | ||
[ | ||
Node( | ||
package="laser_filters", | ||
executable="scan_to_scan_filter_chain", | ||
parameters=[ | ||
PathJoinSubstitution( | ||
[get_package_share_directory("laser_filters"), "examples", "scan_blob_filter_example.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 @@ | ||
scan_to_scan_filter_chain: | ||
ros__parameters: | ||
filter1: | ||
name: scan_blob_filter | ||
type: laser_filters/ScanBlobFilter | ||
params: | ||
max_radius: 0.25 # maximum radius to be considered as blob object | ||
min_points: 6 # min scan points to be considered as blob object |
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,20 @@ | ||
from launch import LaunchDescription | ||
from launch.substitutions import PathJoinSubstitution | ||
from launch_ros.actions import Node | ||
from ament_index_python.packages import get_package_share_directory | ||
|
||
|
||
def generate_launch_description(): | ||
return LaunchDescription( | ||
[ | ||
Node( | ||
package="laser_filters", | ||
executable="scan_to_scan_filter_chain", | ||
parameters=[ | ||
PathJoinSubstitution( | ||
[get_package_share_directory("laser_filters"), "examples", "sector_filter_example.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,12 @@ | ||
scan_to_scan_filter_chain: | ||
ros__parameters: | ||
filter1: | ||
name: scan_filter | ||
type: laser_filters/LaserScanSectorFilter | ||
params: | ||
angle_min: 2.54 # if not specified defaults to 0.0 | ||
angle_max: -2.54 # if not specified defaults to 0.0 | ||
range_min: 0.2 # if not specified defaults to 0.0 | ||
range_max: 2.0 # if not specified defaults to 100000.0 | ||
clear_inside: true # if not specified defaults to true | ||
invert: false # (!clear_inside) if not specified defaults to false |
Oops, something went wrong.