Fix a serialization error with point_cloud headers

This commit is contained in:
William Woodall 2013-07-23 13:34:33 -07:00 committed by Paul Bovbel
parent 11d24d0e97
commit 3bc59ab51b

View File

@ -213,8 +213,8 @@ namespace ros
inline static void read(Stream& stream, pcl::PointCloud<T>& m)
{
std_msgs::Header header;
pcl_conversions::fromPCL(m.header, header);
stream.next(header);
pcl_conversions::toPCL(header, m.header);
stream.next(m.height);
stream.next(m.width);