1.报错内容:
IOError: [Errno 2] No such file or directory: u'/home/coal/demo05_ws/src/urdf01_rviz/urdf/urdf/demo01_helloworld.urdf'
解决方案:world打成了word
2.
报错:RLException: [demo05_test.launch] is neither a launch file in package [uedf01_rviz] nor is [uedf01_rviz] a launch file name
The traceback for the exception was written to the log file
可能原因:
urdf后缀的文件光标最后不要停留在新的空行,删掉最后一个空行
后缀对应,urdf文件夹下文件都为urdf后缀
3.报错内容:
RLException: error loading <rosparam> tag:
file does not exist [/home/coal/demo05_ws/src/urdf01_rviz/config/control.yaml]
XML is <rosparam command="load" file="$(find urdf01_rviz)/config/control.yaml"/>
The traceback for the exception was written to the log file
后缀错了,control.yaml而不是rviz
4.应该先启动demo03_env.launch再启动demo04_sensor.launch,先加载仿真环境gazebo再启动ros,而且demo04没有写参数服务器robot_description
报错内容:[spawn_model-3] process has died [pid 5768, exit code 1, cmd /opt/ros/melodic/lib/gazebo_ros/spawn_model -urdf -model car -param robot_description __name:=spawn_model __log:=/home/coal/.ros/log/3288c746-e729-11ed-a47a-6e4b14baac9d/spawn_model-3.log].
log file: /home/coal/.ros/log/3288c746-e729-11ed-a47a-6e4b14baac9d/spawn_model-3*.log
[Err] [REST.cc:205] Error in REST request
解决方案:忘记编译了
而且显示重复roscore,重启后删除xacro和urdf中的中文注释就解决了