mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-28 22:33:35 +08:00
ros wrapper port callback to methods and subscriber without callback
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user