Allow the viewer handle to return the mjModel/mjData objects from the simulation.
PiperOrigin-RevId: 643982026 Change-Id: Ida5ccb851c46f7352e724798738006be6badad0a
This commit is contained in:
committed by
Copybara-Service
parent
f15b6e5e21
commit
c8cc2d51b0
@@ -94,6 +94,20 @@ class Handle:
|
||||
def user_scn(self):
|
||||
return self._user_scn
|
||||
|
||||
@property
|
||||
def m(self):
|
||||
sim = self._sim()
|
||||
if sim is not None:
|
||||
return sim.m
|
||||
return None
|
||||
|
||||
@property
|
||||
def d(self):
|
||||
sim = self._sim()
|
||||
if sim is not None:
|
||||
return sim.d
|
||||
return None
|
||||
|
||||
def close(self):
|
||||
sim = self._sim()
|
||||
if sim is not None:
|
||||
|
||||
Reference in New Issue
Block a user