首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >openni.launch既不是包[openni_launch]中的启动文件,也不是启动文件名[openni_launch]

openni.launch既不是包[openni_launch]中的启动文件,也不是启动文件名[openni_launch]
EN

Stack Overflow用户
提问于 2019-10-15 03:03:59
回答 1查看 1.9K关注 0票数 2

我想在GPU中运行我的代码。

我有两个OpenCV版本:

  1. ros-3包括带有CPU的cv_bridge.............................................just。
  2. 具有GPU增强功能的OpenCV需要构建cv_bridge .就用GPU

在运行代码时,系统考虑running 3 default。因此,我删除了ros-kinetic OpenCV 3 by:sudo apt remove ros-kinetic-opencv3,然后,我为OpenCV构建了带有GPU增强功能的cv_bridge,比如 (我在catkin_ws/src中下载了vision_opencv,然后使用了catkin_makesource ./devel/setup.bash)。

我试着拍了两个摄像头:

1)照相机名称:华硕xtion当我运行照相机时:roslaunch openni_launch openni.launch,获取此错误

[openni.launch] is neither a launch file in package [openni_launch] nor is [openni_launch] a launch file name The traceback for the exception was written to the log file

当使用这个命令:sudo apt-get install ros-kinetic-openni-launch时,它是工作的,但是使用CPU而不是GPU运行为什么?因为它安装了ros-kinetic-opencv3,所以我需要使用第一步(删除ros-kinetic opencv3 3),这意味着一个封闭的循环。

2)相机名称: Orbbec

我做了第一步和第二步,比如ASUS xtion。当我运行照相机时:roslaunch astra_camera astra.launch得到了这个错误:

代码语言:javascript
复制
    WARNING: Package name "cvTest" does not follow the naming conventions. It should start with a lower case letter and only contain lower case letters, digits, underscores, and dashes.
    ... logging to /home/redhwan/.ros/log/aa3b63a6-eeea-11e9-880f-1c1b0d1de755/roslaunch-redhwan-8176.log
    Checking log directory for disk usage. This may take awhile.
    Press Ctrl-C to interrupt
    Done checking log file disk usage. Usage is <1GB.
    
    Traceback (most recent call last):
      File "/opt/ros/kinetic/lib/python2.7/dist-packages/roslaunch/__init__.py", line 306, in main
        p.start()
      File "/opt/ros/kinetic/lib/python2.7/dist-packages/roslaunch/parent.py", line 268, in start
        self._start_infrastructure()
      File "/opt/ros/kinetic/lib/python2.7/dist-packages/roslaunch/parent.py", line 217, in _start_infrastructure
        self._load_config()
      File "/opt/ros/kinetic/lib/python2.7/dist-packages/roslaunch/parent.py", line 132, in _load_config
        roslaunch_strs=self.roslaunch_strs, verbose=self.verbose)
      File "/opt/ros/kinetic/lib/python2.7/dist-packages/roslaunch/config.py", line 451, in load_config_default
        loader.load(f, config, verbose=verbose)
      File "/opt/ros/kinetic/lib/python2.7/dist-packages/roslaunch/xmlloader.py", line 749, in load
        self._load_launch(launch, ros_config, is_core=core, filename=filename, argv=argv, verbose=verbose)
      File "/opt/ros/kinetic/lib/python2.7/dist-packages/roslaunch/xmlloader.py", line 721, in _load_launch
        self._recurse_load(ros_config, launch.childNodes, self.root_context, None, is_core, verbose)
      File "/opt/ros/kinetic/lib/python2.7/dist-packages/roslaunch/xmlloader.py", line 655, in _recurse_load
        default_machine, is_core, verbose)
      File "/opt/ros/kinetic/lib/python2.7/dist-packages/roslaunch/xmlloader.py", line 685, in _recurse_load
        val = self._include_tag(tag, context, ros_config, default_machine, is_core, verbose)
      File "/opt/ros/kinetic/lib/python2.7/dist-packages/roslaunch/xmlloader.py", line 95, in call
        return f(*args, **kwds)
      File "/opt/ros/kinetic/lib/python2.7/dist-packages/roslaunch/xmlloader.py", line 589, in _include_tag
        inc_filename = self.resolve_args(tag.attributes['file'].value, context)
      File "/opt/ros/kinetic/lib/python2.7/dist-packages/roslaunch/xmlloader.py", line 183, in resolve_args
        return substitution_args.resolve_args(args, context=context.resolve_dict, resolve_anon=self.resolve_anon)
      File "/opt/ros/kinetic/lib/python2.7/dist-packages/roslaunch/substitution_args.py", line 370, in resolve_args
        resolved = _resolve_args(resolved, context, resolve_anon, commands)
      File "/opt/ros/kinetic/lib/python2.7/dist-packages/roslaunch/substitution_args.py", line 383, in _resolve_args
        resolved = commands[command](resolved, a, args, context)
      File "/opt/ros/kinetic/lib/python2.7/dist-packages/roslaunch/substitution_args.py", line 151, in _find
        source_path_to_packages=source_path_to_packages)
      File "/opt/ros/kinetic/lib/python2.7/dist-packages/roslaunch/substitution_args.py", line 197, in _find_executable
        full_path = _get_executable_path(rp.get_path(args[0]), path)
      File "/usr/lib/python2.7/dist-packages/rospkg/rospack.py", line 203, in get_path
        raise ResourceNotFound(name, ros_paths=self._ros_paths)
    ResourceNotFound: rgbd_launch
    ROS path [0]=/opt/ros/kinetic/share/ros
    ROS path [1]=/home/redhwan/catkin_ws/src
    ROS path [2]=/opt/ros/kinetic/share

我修正了这个错误使用:sudo apt install ros-kinetic-rgbd-launch,它是工作,但运行与CPU,而不是GPU,为什么?因为它安装了ros-kinetic-opencv3,所以我需要使用第一步(删除ros-kinetic opencv3 3),这意味着一个封闭的循环。

请帮助我或有什么建议吗?

EN

回答 1

Stack Overflow用户

发布于 2020-02-04 10:25:51

看上去像是在跑

代码语言:javascript
复制
sudo apt install ros-kinetic-rgbd-launch

至少有帮助

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/58386655

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档