Closed hersh closed 10 years ago
I confirm this has happened to me before in the past (and it's quite annoying). The patch is quite simple and I believe you tested it so I'm just gonna merge.
thx, on a break. Will release that asap. If you have better suggestions for object_recognition_msgs, please, let's write a REP or make it go upstream.
done, thx !
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.