Unverified Commit a2a04dde authored by Kaixian Qu's avatar Kaixian Qu Committed by GitHub

Fixes setting of the physical material in the `utils.kit.create_ground_plane` function (#4)

* Fix on physical material initialization
* Updates changelog and extension.toml
Co-authored-by: 's avatarKaixian Qu <kaixqu@leggedrobotics.com>
Co-authored-by: 's avatarMayank Mittal <mittalma@leggedrobotics.com>
parent a66d384c
[package] [package]
# Note: Semantic Versioning is used: https://semver.org/ # Note: Semantic Versioning is used: https://semver.org/
version = "0.1.0" version = "0.1.1"
# Description # Description
title = "ORBIT framework for Robot Learning" title = "ORBIT framework for Robot Learning"
......
Changelog Changelog
--------- ---------
0.1.1 (2023-01-24)
~~~~~~~~~~~~~~~~~~
Fixed
^^^^^
* Fixed setting of physics material on the ground plane when using :meth:``omni.isaac.orbit.utils.kit.create_ground_plane`` function.
0.1.0 (2023-01-17) 0.1.0 (2023-01-17)
~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~
......
...@@ -61,7 +61,12 @@ def create_ground_plane( ...@@ -61,7 +61,12 @@ def create_ground_plane(
# Spawn Ground-plane # Spawn Ground-plane
prim_utils.create_prim(prim_path, usd_path=usd_path, translation=(0.0, 0.0, z_position)) prim_utils.create_prim(prim_path, usd_path=usd_path, translation=(0.0, 0.0, z_position))
# Create physics material # Create physics material
material = PhysicsMaterial(f"{prim_path}/groundMaterial", static_friction, dynamic_friction, restitution) material = PhysicsMaterial(
f"{prim_path}/groundMaterial",
static_friction=static_friction,
dynamic_friction=dynamic_friction,
restitution=restitution,
)
# Apply PhysX Rigid Material schema # Apply PhysX Rigid Material schema
physx_material_api = PhysxSchema.PhysxMaterialAPI.Apply(material.prim) physx_material_api = PhysxSchema.PhysxMaterialAPI.Apply(material.prim)
# Set patch friction property # Set patch friction property
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment