zhoupengwei / tloam

T-LOAM: Truncated Least Squares Lidar-only Odometry and Mapping in Real-Time
GNU General Public License v3.0
237 stars 38 forks source link

open3d #8

Open kinggreat24 opened 2 years ago

kinggreat24 commented 2 years ago

Hi, thanks for sharing your work! I have installed the open3d success. But, when I compile the code, I encounter the following problem. Can you give me some advices, thank you!

error: ‘open3d::geometry::OrientedBoundingBox open3d::geometry::PointCloud2::GetOrientedBoundingBox() const’ marked ‘override’, but does not override 64 | OrientedBoundingBox GetOrientedBoundingBox() const override; | ^~~~~~ In file included from ~/tloam_ws/src/tloam/include/tloam/subscriber/cloud_subscriber.hpp:21, from ~/tloam_ws/src/tloam/src/subscriber/cloud_subscriber.cpp:10: ~/tloam_ws/src/tloam/include/tloam/models/utils/sensor_data.hpp: In member function ‘void tloam::CloudData::reset()’: ~/tloam_ws/src/tloam/include/tloam/models/utils/sensor_data.hpp:24:43: error: invalid new-expression of abstract class type ‘open3d::geometry::PointCloud2’ 24 | cloud_ptr.reset(new open3d::geometry::PointCloud2);

gzyabc commented 9 months ago

Hello, I have the same problem. Have you solved it?

boyang9602 commented 2 months ago

Hi I made a fix for the compatibility with open3d v0.15 https://github.com/boyang9602/tloam/tree/o3dv0.15

zhoupengwei commented 2 months ago

@kinggreat24 These problems have been solved, see main branch.