yirenonege 发表于 2023-8-20 13:25:38

运行luanch lidar 命令,提示找不到package的错误

运行这个 命令



ros2 launch turn_on_wheeltec_robot wheeltec_lidar.launch.py



弹出以下错误


: All log files can be found below /home/wheeltec/.ros/log/2022-11-24-13-56-17-851612-wheeltec-11800
: Default logging verbosity is set to INFO
Task exception was never retrieved
future: <Task finished name='Task-2' coro=<LaunchService._process_one_event() done, defined at /opt/ros/galactic/lib/python3.8/site-packages/launch/launch_service.py:226> exception=InvalidLaunchFileError('py')>
Traceback (most recent call last):
File "/opt/ros/galactic/lib/python3.8/site-packages/ament_index_python/packages.py", line 50, in get_package_prefix
    content, package_prefix = get_resource('packages', package_name)
File "/opt/ros/galactic/lib/python3.8/site-packages/ament_index_python/resources.py", line 48, in get_resource
    raise LookupError(
LookupError: Could not find the resource 'sllidar_ros2' of type 'packages'



我已经把从官网下载的sllidar_ros2 放到和其它驱动一起的文件夹下了







WHEELTEC-Until 发表于 2023-8-22 18:08:37

这里你有添加功能包的启动文件在wheeltec_lidar.launch.py吗?添加新的雷达的情况下都是需要添加的
页: [1]
查看完整版本: 运行luanch lidar 命令,提示找不到package的错误