HuaYuXiao / sdf_tools

Builds 2D signed distance fields from images, 3D signed distance fields from pointclouds, 3D signed distance fields from Octomap, provides a lightweight signed distance field library, message types for signed distance fields, and tools to compress signed distance fields for transport.
BSD 2-Clause "Simplified" License
0 stars 0 forks source link

could not convert from ‘Eigen::Vector4d’ {aka ‘Eigen::Matrix<double, 4, 1>’} to ‘std::vector<double>’ #5

Closed HuaYuXiao closed 4 months ago

HuaYuXiao commented 4 months ago
/home/hyx020222/planner_ws/src/Fast-Planner/plan_env/ThirdParty/sdf_tools/src/sdf_tools/tagged_object_collision_map.cpp: In member function ‘std::vector<double> sdf_tools::TaggedObjectCollisionMapGrid::GridIndexToLocation(int64_t, int64_t, int64_t) const’:
/home/hyx020222/planner_ws/src/Fast-Planner/plan_env/ThirdParty/sdf_tools/src/sdf_tools/tagged_object_collision_map.cpp:903:52: error: could not convert ‘VoxelGrid::VoxelGrid<T, BackingStore>::GridIndexToLocation(int64_t, int64_t, int64_t) const [with T = sdf_tools::TAGGED_OBJECT_COLLISION_CELL; BackingStore = std::vector<sdf_tools::TAGGED_OBJECT_COLLISION_CELL, std::allocator<sdf_tools::TAGGED_OBJECT_COLLISION_CELL> >; Eigen::Vector4d = Eigen::Matrix<double, 4, 1>; int64_t = long int](((int64_t)x_index), ((int64_t)y_index), ((int64_t)z_index))’ from ‘Eigen::Vector4d’ {aka ‘Eigen::Matrix<double, 4, 1>’} to ‘std::vector<double>’
  903 |         return collision_field_.GridIndexToLocation(x_index, y_index, z_index);
      |                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                    |
      |                                                    Eigen::Vector4d {aka Eigen::Matrix<double, 4, 1>}