MuJoCo Web Viewer: add web client containing code that runs in the browser
PiperOrigin-RevId: 956698568 Change-Id: Ia4bebcb25b488d255994018da03e9115187b890c
This commit is contained in:
committed by
Copybara-Service
parent
8b78378868
commit
4dd70d2367
@@ -123,6 +123,21 @@ struct StatePayloadView {
|
||||
// with unknown tags are skipped.
|
||||
bool ParseStatePayload(const void* data, size_t size, StatePayloadView* out);
|
||||
|
||||
// A decoded render state block.
|
||||
struct RenderStateView {
|
||||
mjvCamera camera;
|
||||
mjvPerturb perturb;
|
||||
mjvOption vis_options;
|
||||
mjOption opt;
|
||||
mjVisual vis;
|
||||
mjStatistic stat;
|
||||
uint8_t render_flags[mjNRNDFLAG];
|
||||
};
|
||||
|
||||
// Decodes a render state block produced by the serializer. `data` must hold
|
||||
// kRenderStateSize bytes (e.g. StatePayloadView::render_state).
|
||||
void ParseRenderState(const std::byte* data, RenderStateView* out);
|
||||
|
||||
} // namespace mujoco::studio
|
||||
|
||||
#endif // MUJOCO_PYTHON_EXPERIMENTAL_STUDIO_WEB_STATE_PAYLOAD_H_
|
||||
|
||||
Reference in New Issue
Block a user