Add mjv_camera2GLCamera to mujoco.h.
PiperOrigin-RevId: 956698065 Change-Id: I36856d7142bb5e798c5a90c19609288ddd7c4aac
This commit is contained in:
committed by
Copybara-Service
parent
a3425c72a7
commit
8b78378868
@@ -3732,6 +3732,12 @@ void mjv_applyPerturbPose_wrapper(const MjModel& m, MjData& d, const MjvPerturb&
|
||||
mjv_applyPerturbPose(m.get(), d.get(), pert.get(), flg_paused);
|
||||
}
|
||||
|
||||
MjvGLCamera mjv_camera2GLCamera_wrapper(const MjModel& model, const MjData& data, const MjvCamera& mjv_camera) {
|
||||
MjvGLCamera result;
|
||||
*result.get() = mjv_camera2GLCamera(model.get(), data.get(), mjv_camera.get());
|
||||
return result;
|
||||
}
|
||||
|
||||
void mjv_cameraFrame_wrapper(const val& headpos, const val& forward, const val& up, const val& right, const MjData& d, const MjvCamera& cam) {
|
||||
UNPACK_NULLABLE_VALUE(mjtNum, headpos);
|
||||
UNPACK_NULLABLE_VALUE(mjtNum, forward);
|
||||
@@ -6629,6 +6635,7 @@ EMSCRIPTEN_BINDINGS(mujoco_bindings) {
|
||||
function("mjv_alignToCamera", &mjv_alignToCamera_wrapper);
|
||||
function("mjv_applyPerturbForce", &mjv_applyPerturbForce_wrapper);
|
||||
function("mjv_applyPerturbPose", &mjv_applyPerturbPose_wrapper);
|
||||
function("mjv_camera2GLCamera", &mjv_camera2GLCamera_wrapper);
|
||||
function("mjv_cameraFrame", &mjv_cameraFrame_wrapper);
|
||||
function("mjv_cameraFrustum", &mjv_cameraFrustum_wrapper);
|
||||
function("mjv_cameraInModel", &mjv_cameraInModel_wrapper);
|
||||
|
||||
Reference in New Issue
Block a user