Closed DavidB-CMU closed 8 years ago
When you call DetectObjects() (from apriltags.py) for the first time in an environment, it returns both _addedkinbodies and _updatedkinbodies
DetectObjects()
apriltags.py
robot.DetectObjects() Out[1]: [RaveGetEnvironment(1).GetKinBody('table127'), RaveGetEnvironment(1).GetKinBody('plastic_glass124'), RaveGetEnvironment(1).GetKinBody('table127'), RaveGetEnvironment(1).GetKinBody('plastic_glass124')]
robot.DetectObjects()
Out[1]: [RaveGetEnvironment(1).GetKinBody('table127'), RaveGetEnvironment(1).GetKinBody('plastic_glass124'), RaveGetEnvironment(1).GetKinBody('table127'), RaveGetEnvironment(1).GetKinBody('plastic_glass124')]
any other subsequent calls return only the updated kinbodies:
Out[1]: [RaveGetEnvironment(1).GetKinBody('table127'), RaveGetEnvironment(1).GetKinBody('plastic_glass124')]
Is this expected? I would propose only returning the added kinbodies.
Please see PR #294
Will not fix in apriltags.py This will be fixed by PR https://github.com/personalrobotics/kinbody_detector/pull/4
When you call
DetectObjects()
(fromapriltags.py
) for the first time in an environment, it returns both _addedkinbodies and _updatedkinbodiesany other subsequent calls return only the updated kinbodies:
Is this expected? I would propose only returning the added kinbodies.