最近在学ros2,发现小鱼的教程里面的中间件FastDDS安装的各种包都是master版本,master版本默认是当前时间的最新版,因此对于我们后来学的人不是很友好,因为ros-humble版默认安装了fastcdr-1.0.24版本,后续学习源码编译cartographer的时候,编译会出现错误“fastcdr has no member 'deserializeArray'",经过几番资料查询,发现是fastcdr的版本不匹配,新版本将函数‘deserializeArray'修改成了‘deserialize_array’。因此,将版本调整后并实验成功编译中间件FastDDS。
1.创建文件fastrtps.repos
由于动手学ros2教程里面的’wget http://fishros.com/tools/files/fastrtps.repos'这行命令失效了,出现‘404 Not Found',因此需要自己创建该文件。
cd fastdds_ws
touch fastrtps.repos
用gedit或者vim打开,将以下内容输入进去
repositories:
foonathan_memory_vendor:
type: git
url: https://github.com/eProsima/foonathan_memory_vendor.git
version: v1.2.1<

最低0.47元/天 解锁文章
4865

被折叠的 条评论
为什么被折叠?



