Adding logic to include meshes using MjModel

This commit is contained in:
Abhishek Joshi
2023-09-09 16:37:45 -05:00
parent 4e58b0619b
commit 0412f98df1
4 changed files with 131 additions and 36 deletions
+8
View File
@@ -0,0 +1,8 @@
def get_mesh_ranges(nmesh, arr):
mesh_ranges = [0]
running_sum = 0
for i in range(nmesh):
running_sum += arr[i]
mesh_ranges.append(running_sum)
return mesh_ranges