Skip to content

raisin::tcp_viewer::VoxelBricks ​

struct · #include <rayrai/TcpVoxelMapMesh.hpp>

Occupancy of a voxel map received by the TCP viewer, stored as 16^3-voxel bricks of 64 words of 4^3 voxels (see raisim::RaisimServer::PROTOCOL_FEATURE_VOXEL_MAPS).

Nested classes ​

Public member functions ​

clear ​

cpp
void clear()

Remove every brick.

addBrick ​

cpp
void addBrick(
    int bx,
    int by,
    int bz,
    const std::array<uint64_t, 64> &brickWords)

Add a brick; brickWords holds its 64 words.

word ​

cpp
uint64_t word(int wx, int wy, int wz) const

Returns occupancy of word (wx, wy, wz) in domain-relative word coordinates (0 if absent).

empty ​

cpp
bool empty() const

Returns true if no brick is stored.

Public attributes ​

voxelSize ​

cpp
double voxelSize

Voxel side length.

minKey ​

cpp
std::array<int, 3> minKey

Key of the first voxel of the domain.

size ​

cpp
std::array<int, 3> size

Domain size in voxels.

coordinates ​

cpp
std::vector<std::array<int, 3>> coordinates

Domain-relative coordinates of each brick.

words ​

cpp
std::vector<std::array<uint64_t, 64>> words

Word occupancy of each brick.

slots ​

cpp
raisim::FlatHashMap<uint64_t, uint32_t, KeyHash> slots

Brick index + 1 by packed coordinates.

RaiSim — physics for robotics and AI.