publisher: use wrapper message type

This commit is contained in:
Thomas Gubler
2015-01-21 17:41:13 +01:00
parent 2a2594a171
commit 02fdd48a47
+3 -3
View File
@@ -126,10 +126,10 @@ public:
/** Publishes msg
* @param msg the message which is published to the topic
*/
template<typename M>
int publish(const M &msg)
template<typename T>
int publish(const T &msg)
{
_uorb_pub->update((void *)&msg);
_uorb_pub->update((void *)&(msg.data()));
return 0;
}