diff --git a/point_cloud_transport/include/point_cloud_transport/point_cloud_transport.hpp b/point_cloud_transport/include/point_cloud_transport/point_cloud_transport.hpp index 2e8fc72..d3150ab 100644 --- a/point_cloud_transport/include/point_cloud_transport/point_cloud_transport.hpp +++ b/point_cloud_transport/include/point_cloud_transport/point_cloud_transport.hpp @@ -269,7 +269,7 @@ class PointCloudTransport : public PointCloudTransportLoader return subscribe( base_topic, custom_qos, std::bind( fp, - obj.get(), std::placeholders::_1), VoidPtr(), transport_hints); + obj, std::placeholders::_1), VoidPtr(), transport_hints); } template @@ -282,7 +282,7 @@ class PointCloudTransport : public PointCloudTransportLoader return subscribe( base_topic, queue_size, std::bind( fp, - obj.get(), std::placeholders::_1), VoidPtr(), transport_hints); + obj, std::placeholders::_1), VoidPtr(), transport_hints); } //! Subscribe to a point cloud topic, version for class member function with shared_ptr. @@ -296,7 +296,7 @@ class PointCloudTransport : public PointCloudTransportLoader return subscribe( base_topic, custom_qos, std::bind( fp, - obj.get(), std::placeholders::_1), obj, transport_hints); + obj, std::placeholders::_1), obj, transport_hints); } template @@ -309,7 +309,7 @@ class PointCloudTransport : public PointCloudTransportLoader return subscribe( base_topic, queue_size, std::bind( fp, - obj.get(), std::placeholders::_1), obj, transport_hints); + obj, std::placeholders::_1), obj, transport_hints); } private: