在项目编写ROS服务的时候,出现了下面的错误提醒add_executable cannot create target “server” because another target with the same name already exists.
看了提示,发现同一个工作空间中有2个工程的名字相同,一个是/src/package/src/client,一个是/src/sendMsg/src/client,所以报这个错误,只需要修改其中一个文件的名字就可以了。
虽然是个小错误,还是写出来记录一下。