运行无人仿真课的案例时,终端输入roslaunch simulation circular_px4.launch时,终端有以下错误;
错误1:
ERROR: cannot launch node of type [px4/px4]: Cannot locate node of type [px4] in package [px4].
Make sure file exists in package path and permission is set to executable (chmod +x)
错误2:
[ERROR] [1630035785.084510, 10.108000]: Spawn service failed. Exiting.
[spawn_model-6] process has died [pid 28971, exit code 1, cmd /opt/ros/melodic/lib/gazebo_ros/spawn_model -sdf -database iris -model iris -x 0 -y 0 -z 0 -R 0 -P 0 -Y 0 __name:=spawn_model __log:=/home/long/.ros/log/73c2bf0a-06e8-11ec-96ab-3cf0111b5daa/spawn_model-6.log].
log file: /home/long/.ros/log/73c2bf0a-06e8-11ec-96ab-3cf0111b5daa/spawn_model-6*.log
导致gazebo加载出来只有一个地面,没有建筑,没有无人机,怎么处理5,卡了好几天了。
BOSHEN97已获得悬赏 3 阿木币
最佳答案
cannot launch node of type : Cannot locate node of type in package .这个报错信息已经提示你了,系统找不到启动的文件,你确认一下这个ROS功能包和节点是否正常无误,可以通过roscd命令查找px4功能包,也可以通 ...
cannot launch node of type [px4/px4]: Cannot locate node of type [px4] in package [px4].这个报错信息已经提示你了,系统找不到启动的文件,你确认一下这个ROS功能包和节点是否正常无误,可以通过roscd命令查找px4功能包,也可以通过rosrun查找功能包和节点,如果发现问题相应地解决就行了