Go to the documentation of this file.
3 #include <SimoxUtility/json.h>
20 structure.
setGridSize(json.at(
"gridSize").get<Eigen::Vector3i>());
21 structure.
setVoxelSize(json.at(
"voxelSize").get<Eigen::Vector3f>());
22 structure.
setOrigin(json.at(
"origin").get<Eigen::Vector3f>());
void to_json(nlohmann::json &json, const VoxelGridStructure &structure)
Eigen::Vector3f getVoxelSize() const
Get the voxel size.
void setGridSize(int gridSize)
Set the grid size for a cubic grid.
Eigen::Quaternionf getOrientation() const
Get the grid orienation in the world frame.
Geometric structure of a 3D voxel grid.
void from_json(const nlohmann::json &json, VoxelGridStructure &structure)
Eigen::Vector3i getGridSize() const
Get the grid size.
void setOrigin(const Eigen::Vector3f &value)
Set the grid origin the world frame (center of voxel [0 0 0]).
void setOrientation(const Eigen::Quaternionf &value)
Set the grid orienation in the world frame.
void setVoxelSize(float voxelSize)
Set the voxel size for cubic voxels.
Eigen::Vector3f getOrigin() const
Get the grid origin in the world frame (center of voxel [0 0 0]).