bug:factorGraph object function addFactor returns less one than normal return value
Afficher commentaires plus anciens
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)
Réponse acceptée
Plus de réponses (1)
Zheng Dong
le 5 Jan 2023
Modifié(e) : Zheng Dong
le 6 Jan 2023
0 votes
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 commentaires
Zheng Dong
le 6 Jan 2023
Hi Cui,
Please check my updated answer.
Thanks
Zheng
xingxingcui
le 7 Jan 2023
Modifié(e) : xingxingcui
le 7 Jan 2023
Catégories
En savoir plus sur Lengths and Angles dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!