ROS 中的launch启动报错
启动launch文件报错Resource not found: kinova-rosROS path [0]=/opt/ros/melodic/share/rosROS path [1]=/home/xia/catkin_ws/srcROS path [2]=/opt/ros/melodic/shareThe traceback for the exception was written to t
目录
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
更多推荐
所有评论(0)