You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
force_show_colliders (bool): If True, the collision shapes are always shown, even if there are visual shapes.
1591
1589
enable_self_collisions (bool): If True, self-collisions are enabled.
1592
1590
ignore_inertial_definitions (bool): If True, the inertial parameters defined in the URDF are ignored and the inertia is calculated from the shape geometry.
1593
-
ensure_nonstatic_links (bool): If True, links with zero mass are given a small mass (see `static_link_mass`) to ensure they are dynamic.
1594
-
static_link_mass (float): The mass to assign to links with zero mass (if `ensure_nonstatic_links` is set to True).
1595
1591
joint_ordering (str): The ordering of the joints in the simulation. Can be either "bfs" or "dfs" for breadth-first or depth-first search, or ``None`` to keep joints in the order in which they appear in the URDF. Default is "dfs".
1596
1592
bodies_follow_joint_ordering (bool): If True, the bodies are added to the builder in the same order as the joints (parent then child body). Otherwise, bodies are added in the order they appear in the URDF. Default is True.
1597
1593
collapse_fixed_joints (bool): If True, fixed joints are removed and the respective bodies are merged.
force_show_colliders (bool): If True, the collision shapes are always shown, even if there are visual shapes.
1960
1952
enable_self_collisions (bool): If True, self-collisions are enabled.
1961
1953
ignore_inertial_definitions (bool): If True, the inertial parameters defined in the MJCF are ignored and the inertia is calculated from the shape geometry.
1962
-
ensure_nonstatic_links (bool): If True, links with zero mass are given a small mass (see `static_link_mass`) to ensure they are dynamic.
1963
-
static_link_mass (float): The mass to assign to links with zero mass (if `ensure_nonstatic_links` is set to True).
1964
1954
collapse_fixed_joints (bool): If True, fixed joints are removed and the respective bodies are merged.
1965
1955
verbose (bool): If True, print additional information about parsing the MJCF.
1966
1956
skip_equality_constraints (bool): Whether <equality> tags should be parsed. If True, equality constraints are ignored.
Copy file name to clipboardExpand all lines: newton/_src/utils/import_mjcf.py
-14Lines changed: 0 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -155,8 +155,6 @@ def parse_mjcf(
155
155
force_show_colliders: bool=False,
156
156
enable_self_collisions: bool=True,
157
157
ignore_inertial_definitions: bool=False,
158
-
ensure_nonstatic_links: bool=False,
159
-
static_link_mass: float=1e-2,
160
158
collapse_fixed_joints: bool=False,
161
159
verbose: bool=False,
162
160
skip_equality_constraints: bool=False,
@@ -256,8 +254,6 @@ def parse_mjcf(
256
254
force_show_colliders (bool): If True, the collision shapes are always shown, even if there are visual shapes.
257
255
enable_self_collisions (bool): If True, self-collisions are enabled.
258
256
ignore_inertial_definitions (bool): If True, the inertial parameters defined in the MJCF are ignored and the inertia is calculated from the shape geometry.
259
-
ensure_nonstatic_links (bool): If True, links with zero mass are given a small mass (see `static_link_mass`) to ensure they are dynamic.
260
-
static_link_mass (float): The mass to assign to links with zero mass (if `ensure_nonstatic_links` is set to True).
261
257
collapse_fixed_joints (bool): If True, fixed joints are removed and the respective bodies are merged.
262
258
verbose (bool): If True, print additional information about parsing the MJCF.
263
259
skip_equality_constraints (bool): Whether <equality> tags should be parsed. If True, equality constraints are ignored.
@@ -1455,16 +1451,6 @@ def parse_body(
1455
1451
builder.body_inv_inertia[link] =wp.inverse(I_m)
1456
1452
else:
1457
1453
builder.body_inv_inertia[link] =I_m
1458
-
ifm==0.0andensure_nonstatic_links:
1459
-
# set the mass to something nonzero to ensure the body is dynamic
force_show_colliders (bool): If True, the collision shapes are always shown, even if there are visual shapes.
168
166
enable_self_collisions (bool): If True, self-collisions are enabled.
169
167
ignore_inertial_definitions (bool): If True, the inertial parameters defined in the URDF are ignored and the inertia is calculated from the shape geometry.
170
-
ensure_nonstatic_links (bool): If True, links with zero mass are given a small mass (see `static_link_mass`) to ensure they are dynamic.
171
-
static_link_mass (float): The mass to assign to links with zero mass (if `ensure_nonstatic_links` is set to True).
172
168
joint_ordering (str): The ordering of the joints in the simulation. Can be either "bfs" or "dfs" for breadth-first or depth-first search, or ``None`` to keep joints in the order in which they appear in the URDF. Default is "dfs".
173
169
bodies_follow_joint_ordering (bool): If True, the bodies are added to the builder in the same order as the joints (parent then child body). Otherwise, bodies are added in the order they appear in the URDF. Default is True.
174
170
collapse_fixed_joints (bool): If True, fixed joints are removed and the respective bodies are merged.
0 commit comments