|
|
@ -126,10 +126,10 @@ public: |
|
|
|
/** Publishes msg
|
|
|
|
/** Publishes msg
|
|
|
|
* @param msg the message which is published to the topic |
|
|
|
* @param msg the message which is published to the topic |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
template<typename M> |
|
|
|
template<typename T> |
|
|
|
int publish(const M &msg) |
|
|
|
int publish(const T &msg) |
|
|
|
{ |
|
|
|
{ |
|
|
|
_uorb_pub->update((void *)&msg); |
|
|
|
_uorb_pub->update((void *)&(msg.data())); |
|
|
|
return 0; |
|
|
|
return 0; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|