raisin::tcp_viewer::ClientRequest
struct · #include <rayrai/TcpProtocolMessages.hpp>
A single pending client request to be flushed on the next update.
Filled by the viewer UI (play/pause/step, force handles, pose authoring, the spawn palette, the interaction wire) and drained into the binary wire format by sendUpdateRequest(). Only the fields relevant to type are encoded.
Public attributes
type
ClientRequestType typeRequest kind; selects the encoded fields.
stepCount
int32_t stepCountSteps to advance (CR_STEP_N).
visTag
uint32_t visTagTarget object visual tag.
localBodyIdx
int32_t localBodyIdxTarget body index within the object.
vec3a
glm::vec3 vec3aforce application point / pose or spawn position / torque
vec3b
glm::vec3 vec3bforce command; RaisimServer multiplies it by target body mass
quat
glm::vec4 quatpose/spawn orientation, wxyz: x holds w
gc
std::vector<float> gcGeneralized coordinates (CR_SET_GC).
name
std::string nameName of the spawned object.
appearance
std::string appearanceAppearance string of the spawned object.
file
std::string fileServer-side path: RaisimServer resolves it on the simulation host, not here.
mass
float massMass of the spawned body.
bodyType
int32_t bodyTypeSpawnBodyType value.
size
std::array<float, kClientRequestSizeSlots> sizeShape extents; all slots are always sent.
linVel
glm::vec3 linVelInitial linear velocity of a spawned body.
angVel
glm::vec3 angVelInitial angular velocity of a spawned body.
stiffness
float stiffnessSpring constant per unit mass. Zeroed by the server on any frame that omits CR_DRAG_OBJECT, so a live drag has to resend it every update.
point
glm::dvec3 pointWire attach/target point. Encoded as three native doubles (legacy format).
manifestId
uint64_t manifestIdManifest the request refers to (CR_SCENE_*).
fileIndex
int32_t fileIndexFile index in the manifest (CR_SCENE_FILE_CHUNK).
fileOffset
uint64_t fileOffsetFirst byte requested (CR_SCENE_FILE_CHUNK).
maxBytes
int32_t maxBytesMost bytes requested (CR_SCENE_FILE_CHUNK).