mirror of
https://github.com/bjoernellens1/cps_loki_bringup.git
synced 2024-11-22 07:33:47 +00:00
update: inlcude scan filter node
This commit is contained in:
parent
6c655928c1
commit
7f305d6456
15
config/box_filter.yaml
Normal file
15
config/box_filter.yaml
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
scan_to_scan_filter_chain:
|
||||||
|
ros__parameters:
|
||||||
|
filter1:
|
||||||
|
name: box_filter
|
||||||
|
type: laser_filters/LaserScanBoxFilter
|
||||||
|
params:
|
||||||
|
box_frame: laser_frame
|
||||||
|
max_x: 0.80 #was 0.16
|
||||||
|
max_y: 0.18 #was 0.17
|
||||||
|
max_z: 0.1
|
||||||
|
min_x: -0.15 #was -0.41
|
||||||
|
min_y: -0.18 # was -0.17
|
||||||
|
min_z: -0.2
|
||||||
|
|
||||||
|
invert: false # activate to remove all points outside of the box
|
18
launch/robot_scan_filter.launch.py
Normal file
18
launch/robot_scan_filter.launch.py
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
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("cps_loki_bringup"),
|
||||||
|
"config", "box_filter.yaml",
|
||||||
|
])],
|
||||||
|
)
|
||||||
|
])
|
Loading…
Reference in New Issue
Block a user