持续更新中……
第二章
P42
$ rosrun chapter2_tutorials example1_a
MakeLists中的可执行文件名为chap2_texample1_a,所以上一句应为
$ rosrun chapter2_tutorials chap2_example1_a
此错误整章存在多处
P48-49
<node name = "example1_a" pkg = "chapter2_tutorials" tpye = “example1_a”/>
应该为
<node name = "example1_a" pkg = "chapter2_tutorials" tpye = “chap2_example1_a”/>
P50
exit(gen.generate(PACKAGE, "chapter2_tutorials". "chapter2_"))
第三个参数必须与文件名相同,应为
exit(gen.generate(PACKAGE, "chapter2_tutorials". "chapter2"))