wg-perception/object_recognition_ros — pull request #16 by hersh (2014-08-09 00:07:33+00:00)
Title: Added try/catch in rviz plugin to prevent crash

When the rviz plugin received my RecognizedObjects message, it crashed rviz.

I traced the exception back as far as info_cache.cpp:62 where it initializes an object_recognition_core::db::ObjectDbParameters object.

The message I was sending was probably not what it was expecting, but that should still not crash rviz. So I just added the try/catch you see here, and that makes it work fine for my purposes.