简略地记录一下自己解决这个小问题的过程,折腾了好几天。
引用同一工作空间下其他package的‘.h’文件,一种方法是创建library生成动态链接库‘.so’:
[1]https://answers.ros.org/question/33779/how-do-i-link-an-executable-with-library-in-other-package/?answer=33781#post-id-33781.
[2]https://blog.youkuaiyun.com/wawayu_0/article/details/79410237?utm_source=blogxgwz2.
[3]https://blog.youkuaiyun.com/Will_Ye/article/details/79587075.
另一种方法是直接引用‘.h’文件:
[1]https://blog.youkuaiyun.com/zhixiongning/article/details/81910857.
[2]http://question2464.rssing.com/browser.php?indx