2023-04-12 08:11:46 +00:00
|
|
|
import os
|
|
|
|
from launch import LaunchDescription
|
|
|
|
from launch_ros.actions import Node
|
|
|
|
|
|
|
|
def generate_launch_description():
|
|
|
|
|
|
|
|
return LaunchDescription([
|
|
|
|
|
|
|
|
Node(
|
2023-07-28 09:07:50 +00:00
|
|
|
package='sllidar_ros2',
|
|
|
|
executable='view_sllidar_launch',
|
2023-04-12 08:11:46 +00:00
|
|
|
output='screen',
|
|
|
|
parameters=[{
|
2023-07-28 09:07:50 +00:00
|
|
|
'serial_port': 'usb-Silicon_Labs_CP2102_USB_to_UART_Bridge_3453995662b3af4f81f4a69eba5f3f29-if00-port0',
|
2023-04-12 08:11:46 +00:00
|
|
|
'frame_id': 'laser_frame',
|
|
|
|
'angle_compensate': True,
|
2023-07-28 09:07:50 +00:00
|
|
|
'scan_mode': 'Sensitivity'
|
2023-04-12 08:11:46 +00:00
|
|
|
}]
|
|
|
|
)
|
|
|
|
])
|