Invalid roslaunch XML syntax: no element found:

I have an error in my XML I cant run the first exercise, its proving difficult to trace as I dont know the correct syntax to use in the launch file,I suspect its the xml syntax,any help would be appreciated

Hi, please share the error output. A number of things could be causing the error. Try compiling again, sourcing your environment and parse through your packages with the following commands:

cd catkin_ws
rm -rf build/
rm -rf devel/
source devel/setup.bash
rospack profile

If it still gives an error, then try changing the node tag to this and launch again:


    <node pkg="my_package" type="" name="ObiWan" output="screen"/>


it says Invalid roslaunch XML syntax: no element found: line 1, column 0

Did you try what I suggested? It seems like the launch file is not being recognized. Try pasting the code I shared and running it again.