URDF course - invalid xml in example 2.1.4

I’m working on the URDF Course chapter 2, and on example 2.1.4 on the spawn example, when I tried to launch the launch file, I got this error:

[ERROR] [1656437855.498844, 277.364000]: Invalid XML: junk after document element: line 25, column 0
[urdf_spawner-1] process has died [pid 5036, exit code 1, cmd /opt/ros/noetic/lib/gazebo_ros/spawn_model -urdf -x 0.0 -y 0.0 -z 0.2 -model mira -param robot_description __name:=urdf_spawner __log:=/home/user/.ros/log/4ca7c346-f708-11ec-b6de-0242c0a88007/urdf_spawner-1.log].
log file: /home/user/.ros/log/4ca7c346-f708-11ec-b6de-0242c0a88007/urdf_spawner-1*.log

I used the codes provided and didn’t make any change to it, so I’m wondering how should I solve this problem? Thanks!

Please check the launch file you copied. The error is pointing to an invalid character in it.

I suggest you delete the content and copy/paste the launch file again.

If the error happens after this, please paste the content of the launch file here.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.