YDLIDAR / ydlidar_ros2_driver

ydlidar driver package under ros2
Other
54 stars 99 forks source link

Launch Error #3

Open GauZen opened 3 years ago

GauZen commented 3 years ago

Hi, I meet this problem when i run the following command and I have tried some methods but no one works.

ros2 launch ydlidar_ros2_driver ydlidar_launch.py

[INFO] [launch]: All log files can be found below /home/wlw/.ros/log/2020-09-23-14-45-56-344114-ubuntu-19979 [INFO] [launch]: Default logging verbosity is set to INFO [ERROR] [launch]: Caught exception in launch (see debug for traceback): init() got an unexpected keyword argument 'emulate_tty'

yangfuyuan commented 3 years ago

This is caused by version inconsistency. You can remove the emulate_tty=True from ydlidar_launch.py below:

 driver_node = LifecycleNode(package='ydlidar_ros2_driver',
                                node_executable='ydlidar_ros2_driver_node',
                                node_name='ydlidar_ros2_driver_node',
                                output='screen',
                                emulate_tty=True,
                                parameters=[parameter_file],
                                node_namespace='/',
                                )