ros wrapper port callback to methods and subscriber without callback

This commit is contained in:
Thomas Gubler
2015-01-22 16:47:28 +01:00
parent 8c4fce3654
commit 49d41773fc
4 changed files with 34 additions and 34 deletions
+1 -2
View File
@@ -130,11 +130,10 @@ protected:
void callback(const typename std::remove_reference<decltype(((T*)nullptr)->data())>::type &msg)
{
/* Store data */
this->_msg_current = (T)msg;
this->_msg_current.data() = msg;
/* Call callback */
if (_cbf != NULL) {
// _cbf(_msg_current);
_cbf(this->get());
}