今天我把工程重新封裝後,進行測試時,用已有的launch文件進行測試,出現錯誤(launch文件之前寫好的,沒有測),錯誤log如下:
Invalid roslaunch XML syntax: mismatched tag: line 7, column 6
The traceback for the exception was written to the log file
嗯,這裏說的是我的語法有錯,後來發現是有兩處少了 '/' 號,好的修改過來,再三檢查,運行。還是報同樣的錯誤!!!what ?
<一> 那好,我重新寫個總行了把。重新寫好了,可是 一直tab不出來,那隻好自己補充完整。報如下錯誤(意料之中的事):
[start.launch] is neither a launch file in package [test] nor is [test] a launch file name
The traceback for the exception was written to the log file
做到這裏,這個肯定不是launch文件的問題了。
<二> 那好 我重新 source 下(其實我早就把 source 寫進了zshrc中了,我用的是zsh)
source ~/project/devel/setup.zsh
還是不行,我只是抱着僥倖的心裏做的,什麼方法都試一遍那樣總有一種是對的,中比不去做要好。
<三> 哎,什麼鬼,煩死了...這時,我想到,我今天早上把工程 git clone 在另一個工作空間裏,突然靈光一閃,對呀,當我使用roslaunch的時候,兩個是相同的功能包,也許我一直查找到的是另一個工作空間的laun文件,笨死了。把另一個工作空間裏的相同的功能包刪除掉,重新運行launch文件,好啦!!