Nodelet unloading based on misconfiguration in onInit()
I'm currently trying to determine if anyone has come up with a sound way of unloading a nodelet based on error conditions in either the onInit() function, or in normal operation of the node.
Essentially, I would like to sanity check all of the nodelet's parameters in the onInit() function, and then stop operation if the parameters don't fall within the correct bounds.
Obviously, I could probably return before loading all of the publishers and subscribers, but this leaves the nodelet loaded, which I don't feel is a terribly clean solution.
Has anyone else come up with a better mechanism for this?