diff --git a/src/PCLFiltration.cpp b/src/PCLFiltration.cpp index aee8079..acbb7ef 100644 --- a/src/PCLFiltration.cpp +++ b/src/PCLFiltration.cpp @@ -20,7 +20,7 @@ void PCLFiltration::onInit() { // Transformer const auto uav_name = _common_handlers->param_loader->loadParam2("uav_name"); - const auto topic_3d_lidar_type = _common_handlers->param_loader->loadParam2("topic_3d_lidar_type_in"); + const auto topic_3d_lidar_type = _common_handlers->param_loader->loadParam2("topic_3d_lidar_type_in", "sensor_msgs/PointCloud2"); _common_handlers->transformer = std::make_shared("PCLFilter"); _common_handlers->transformer->setDefaultPrefix(uav_name); _common_handlers->transformer->setLookupTimeout(ros::Duration(0.05));