找回密码
 立即注册
搜索
查看: 2693|回复: 1

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

[复制链接]

2

主题

6

帖子

38

积分

新手上路

Rank: 1

积分
38
发表于 2023-8-20 13:25:38 | 显示全部楼层 |阅读模式
运行这个 命令



ros2 launch turn_on_wheeltec_robot wheeltec_lidar.launch.py



弹出以下错误


[INFO] [launch]: All log files can be found below /home/wheeltec/.ros/log/2022-11-24-13-56-17-851612-wheeltec-11800
[INFO] [launch]: 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 放到和其它驱动一起的文件夹下了
下载.png






回复

使用道具 举报

0

主题

189

帖子

525

积分

高级会员

Rank: 4

积分
525
发表于 2023-8-22 18:08:37 | 显示全部楼层
这里你有添加功能包的启动文件在wheeltec_lidar.launch.py吗?添加新的雷达的情况下都是需要添加的
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

粤ICP备20017043号|小黑屋|手机版|Archiver|轮趣科技(东莞)有限公司  

GMT+8, 2024-4-27 22:48 , Processed in 0.067869 second(s), 28 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表