From e8985032ebaa596c7d7143a1ae9f3e643a0cb3c0 Mon Sep 17 00:00:00 2001 From: jugo Date: Tue, 24 Sep 2024 17:23:42 +0200 Subject: [PATCH] velodyne_packet_pointcloud: Rest the pointer to the cloud in the processPacket function,as there is no call to the setup function of the base class in this case. --- velodyne_packet_pointcloud/src/unpacker.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/velodyne_packet_pointcloud/src/unpacker.cpp b/velodyne_packet_pointcloud/src/unpacker.cpp index e82487fa..83fd8309 100644 --- a/velodyne_packet_pointcloud/src/unpacker.cpp +++ b/velodyne_packet_pointcloud/src/unpacker.cpp @@ -109,10 +109,10 @@ namespace velodyne_packet_pointcloud void Unpacker::processPacket(const velodyne_msgs::VelodynePacket &packetMsg, const uint8_t return_mode) { - // contents of the setup function in base class ( no scan message to pas to this function) + // contents of the setup function in base class ( no scan message to pass to this function) set_return_mode(return_mode); - + cloud.reset(new sensor_msgs::PointCloud2(cloud_template)); manage_tf_buffer(); packets_in_scan = 1; // must be ste to at least one cloud->header.stamp = packetMsg.stamp;