ROS 中的launch启动报错

Resource not found

Resource not found: kinova-ros
ROS path [0]=/opt/ros/melodic/share/ros
ROS path [1]=/home/xia/catkin_ws/src
ROS path [2]=/opt/ros/melodic/share
The traceback for the exception was written to the log file
在这里插入图片描述

原因
1.没有source,需要catkin_make后source devel/setip.bash
2.找不到功能包,find 参数应为包含launch文件的功能包(只含有一个cmakelist的功能包)
在这里插入图片描述上面的路径不是包含要启动launch文件的功能包,报错,虽然该路径下可以找到文件launch文件,但find后 为 功能包名称,而非绝对路径

正确格式<include file="$(find flie_pkg_name)/launch/xx.launch">
3. include 包含的launch文件 ,需要在同一个综合功能包中
在这里插入图片描述

Unable to launch

RLException: Unable to launch [j2_gazebo_model-1].
If it is a script, you may be missing a ‘#!’ declaration at the top.
The traceback for the exception was written to the log file
在这里插入图片描述

解决:
可能是launch内部格式、参数不对
例如,使用node方法 启动 其他launch文件,正确应该用include方法 启动其他launch文件

The kinematics plugin (arm) failed to load

roslaunch j2n6s200_moveit_config demo.launch
在这里插入图片描述 解决:sudo apt-get install ros-melodic-trac-ik-kinematics-plugin
注意版本

Invalid roslaunch XML syntax

在这里插入图片描述通常是,launch文件的格式不对,或者引用launch文件的名称路径错误

ROSInitException: time is not initialized

需在执行程序(实例化)之前要先init_node

moveit启动的报错::EQUIRED process [moveit_setup_assistant-1] has died!

在这里插入图片描述
从报错日志上看是加载共享库出现问题,找不到目录,一个可能的原因是没有将moveit的路径加入到当前bash下,解决(注意对应版本):

source /opt/ros/noetic/setup.bash
  • 3
    点赞
  • 50
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值