Skip to main content
. Author manuscript; available in PMC: 2019 Oct 1.
Published in final edited form as: Rep U S. 2019 Jan 7;2018:1298–1305. doi: 10.1109/IROS.2018.8594471

Algorithm 3:

Particle Filter Algorithm for Tool Tracking

Input:Tool Model,χt1,ut,zt,Pt,gCBt1χ¯t=χt=2form=1:Mdo3samplextm~p(xt|ut,xt1m)4Compute and normalize the Chamfer matching score using the set of virtual images:5p(zt|xtm)~virtual_tool_rendering(Tool Model,xtm,Pt,gCBt)6wtm=p(zt|xtm)7χ¯t=χ¯t+xtm,wtm8end9form=1:Mdo10drawiwith probabilitywti11addxtitoχt12endOutput:χt