wg-perception / object_recognition_core

The core of object recognition, where the development now happens
48 stars 47 forks source link

Don't throw when database is empty #32

Closed v4hn closed 9 years ago

v4hn commented 9 years ago

There is no need to throw here. The function load_fields_and_attachments works quite nicely for an empty database. The only thing it has to do is return...

This makes it possible to use the rviz plugin OrkObject without a valid database (This obviously doesn't show meshes or the name then, but it's still useful as it prints confidence values and the object's key.

vrabaud commented 9 years ago

ok, sounds good. Thx !