Hello, I have a problem when displaying vectors of structs in the datalayer browser, see screenshot. I get the error Incorrect type. Expected "object". (json undefined) [1:1-1:5].
auto snapDir = snapPath();
std::filesystem::path dir = "compiled"; // Build environment: Compiled files are stored into that sub directory
if (snapDir != nullptr)
{
dir = snapDir; // Snap environment: Compiled files are stored into the $SNAP directory
}
std::filesystem::path fileBfbs1 = dir / "PointClusters.bfbs";
result = provider->registerType("types/vectorData/PointClusters", fileBfbs1);
if (STATUS_FAILED(result))
{
std::cout << "WARN Register type 'types/vectorData/PointClusters' " << fileBfbs1 << " failed with: " << result.toString() << std::endl;
}
std::filesystem::path fileMddb = dir / "metadata.mddb";
result = provider->registerType("datalayer", fileMddb);
if (STATUS_FAILED(result))
{
std::cout << "WARN Register " << fileBfbs1 << " failed with: " << result.toString() << std::endl;
}
result = provider->registerNode("/flatbuffers/meinPointCluster", m_locatorProviderNode);
flatbuffers::FlatBufferBuilder builder1;
auto flatbuffersPointClusters1 = binaryVectors::CreatePointClusters(builder1, 43.0, 4.0, 555.0, 4, 10);
auto flatbuffersPointClusters2 = binaryVectors::CreatePointClusters(builder1, 44.0, 4.0, 555.0, 4, 10);
auto flatbuffersPointClusters3 = binaryVectors::CreatePointClusters(builder1, 45.0, 4.0, 555.0, 4, 10);
std::vector<flatbuffers::Offset<binaryVectors::PointClusters>> PointClusterVector;
PointClusterVector.push_back(flatbuffersPointClusters1);
PointClusterVector.push_back(flatbuffersPointClusters2);
PointClusterVector.push_back(flatbuffersPointClusters3);
auto pointClusterFinished = builder1.CreateVector(PointClusterVector);
std::vector<flatbuffers::Offset<binaryVectors::Pose2D>> Pose2DVector;
builder1.Finish(pointClusterFinished);
meinPointCluster.shareFlatbuffers(builder1);
Is displaying vectors of structs supported in the datalayer browser web ui?