Skip to content
Snippets Groups Projects
Commit 3d48c7be authored by Fabian Reister's avatar Fabian Reister
Browse files

armem_vision: eigen::array as grid type

parent 4dc749b2
No related branches found
No related tags found
2 merge requests!170ArMem Viewer: Resolve Memory IDs,!164Feature/armem robot vision (previously armem_robot_mapping)
......@@ -23,8 +23,8 @@
#include <vector>
#include <RobotAPI/libraries/armem/core/Time.h>
#include <RobotAPI/interface/units/LaserScannerUnit.h>
#include <RobotAPI/libraries/armem/core/Time.h>
namespace armarx::armem
{
......@@ -42,7 +42,7 @@ namespace armarx::armem
LaserScan data;
};
// template<typename _ValueT = float>
struct OccupancyGrid
{
float resolution;
......@@ -50,8 +50,12 @@ namespace armarx::armem
std::string frame;
Eigen::Affine3f pose;
using Grid = std::vector<std::vector<float>>;
// using ValueType = _ValueT;
using CellType = float;
using Grid = Eigen::Array<CellType, Eigen::Dynamic, Eigen::Dynamic>;
Grid grid;
};
} // namespace armarx::armem
} // namespace armarx::armem
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment