32 lines
1.1 KiB
Python
32 lines
1.1 KiB
Python
|
from launch import LaunchDescription
|
||
|
from launch.actions import DeclareLaunchArgument
|
||
|
from launch.substitutions import LaunchConfiguration
|
||
|
from launch_ros.actions import Node
|
||
|
|
||
|
|
||
|
def generate_launch_description():
|
||
|
return LaunchDescription([
|
||
|
DeclareLaunchArgument(
|
||
|
name='scanner', default_value='scanner',
|
||
|
description='Namespace for sample topics'
|
||
|
),
|
||
|
Node(
|
||
|
package='pointcloud_to_laserscan', executable='pointcloud_to_laserscan_node',
|
||
|
remappings=[('cloud_in', '/utlidar/cloud'), ('scan', '/utlidar/scan')],
|
||
|
parameters=[{
|
||
|
'target_frame': 'base_link',
|
||
|
'transform_tolerance': 0.01,
|
||
|
'min_height': -0.15,
|
||
|
'max_height': 1.3,
|
||
|
'angle_min': -1.5708, # -M_PI/2
|
||
|
'angle_max': 1.5708, # M_PI/2
|
||
|
'angle_increment': 0.1, # M_PI/360.0
|
||
|
'scan_time': 0.3333,
|
||
|
'range_min': 0.1,
|
||
|
'range_max': 20.0,
|
||
|
'use_inf': True,
|
||
|
'inf_epsilon': 1.0
|
||
|
}],
|
||
|
name='pointcloud_to_laserscan'
|
||
|
)
|
||
|
])
|