bug:factorGraph object function addFactor returns less one than normal return value
显示 更早的评论
this is minor bug, addFactor should return 1-based positive integer node index value,but in matlab R2022b return 0-base index value.
f = factorTwoPoseSE3([1 2])
g = factorGraph;
nodeId = addFactor(g,f)
采纳的回答
更多回答(1 个)
Zheng Dong
2023-1-5
编辑:Zheng Dong
2023-1-6
0 个投票
Hi Cui,
Referring to the doc page for addFactor, the return value of addFactor is factorID not nodeID, and factorID will start from 0. I am sorry for the confusion here.
Thanks,
Zheng
3 个评论
Zheng Dong
2023-1-6
Hi Cui,
Please check my updated answer.
Thanks
Zheng
xingxingcui
2023-1-7
编辑:xingxingcui
2023-1-7
类别
在 帮助中心 和 File Exchange 中查找有关 Lengths and Angles 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!