Skip to content

raisin::tcp_viewer::RemoteSceneState ​

struct · #include <rayrai/TcpRemoteSceneState.hpp>

Persistent client-side state mirrored from the remote server.

Public attributes ​

configNumber ​

cpp
uint32_t configNumber

Server scene configuration number from the latest update.

visuals ​

cpp
std::unordered_map<uint64_t, VisualEntry> visuals

Visual entries keyed by (object tag << 32) | body index.

visualPtrToKey ​

cpp
std::unordered_map<const raisin::Visuals *, uint64_t> visualPtrToKey

Reverse of visuals.

objectNamesByTag ​

cpp
std::unordered_map<uint32_t, std::string> objectNamesByTag

Object names by tag.

instanced ​

cpp
std::unordered_map<uint32_t, InstancedEntry> instanced

Keyed by object tag.

tcpMeshBatches ​

cpp
std::unordered_map<std::string, TcpMeshBatch> tcpMeshBatches

Keyed by mesh/appearance key.

sensorsByTag ​

cpp
std::unordered_map<uint32_t, std::vector<SensorInfo>> sensorsByTag

Sensors per parent object tag, indexed by the server's sensor index.

heightmaps ​

cpp
std::unordered_map<uint32_t, HeightmapPlane> heightmaps

Keyed by object tag.

deformables ​

cpp
std::unordered_map<uint32_t, DeformableMesh> deformables

Keyed by object tag.

pointClouds ​

cpp
std::unordered_map<uint32_t, RemotePointCloud> pointClouds

Remote point clouds.

contacts ​

cpp
std::vector<ContactSample> contacts

Contacts from the latest update.

tcpMeshBatchesDirty ​

cpp
bool tcpMeshBatchesDirty

Mesh batches must be regrouped.

tcpMeshBatchRegroupCount ​

cpp
size_t tcpMeshBatchRegroupCount

Regroup passes since the last scene clear (diagnostics).

selectedInfo ​

cpp
SelectedObjectInfo selectedInfo

Detailed state of the selected object.

requestedSelectionTag ​

cpp
uint32_t requestedSelectionTag

Object tag sent to the server for detailed state.

serverWorldTime ​

cpp
double serverWorldTime

Server simulation time from the latest update.

serverWorldTimeValid ​

cpp
bool serverWorldTimeValid

serverWorldTime has been received.

useLegacyProtocol ​

cpp
bool useLegacyProtocol

Cleared once the server sends an explicit feature header.

remoteFeatureBits ​

cpp
uint64_t remoteFeatureBits

Feature bits advertised by the server.

serverSupportsSimControl ​

cpp
bool serverSupportsSimControl

Server advertised kProtocolFeatureSimControl.

disconnectRequested ​

cpp
bool disconnectRequested

Set when the server is terminating or sent an invalid shape; consumed by the viewer loop.

pendingViewerCommands ​

cpp
std::vector<ViewerCommand> pendingViewerCommands

Server commands not yet executed.

RaiSim — physics for robotics and AI.