Hi, I want to use isaaclab to create a sphere, following the official tutorial I use the code below to create a sphere with physics properties.
import omni.isaac.lab.sim as sim_utils
from omni.isaac.lab.assets import ArticulationCfg, AssetBaseCfg, RigidObjectCfg
from omni.isaac.lab.scene import InteractiveScene, InteractiveSceneCfg
from omni.isaac.lab.sim import SimulationContext
from omni.isaac.lab.utils import configclass
@configclass
class CartpoleSceneCfg(InteractiveSceneCfg):
"""Configuration for a cart-pole scene."""
# ground plane
ground = AssetBaseCfg(prim_path="/World/defaultGroundPlane", spawn=sim_utils.GroundPlaneCfg())
# lights
dome_light = AssetBaseCfg(
prim_path="/World/Light", spawn=sim_utils.DomeLightCfg(intensity=3000.0, color=(0.75, 0.75, 0.75))
)
# Prim
sphere = RigidObjectCfg(
prim_path="/World/Sphere",
# sim_utils.UsdFileCfg()
spawn=sim_utils.SphereCfg(
radius=1,
rigid_props=sim_utils.RigidBodyPropertiesCfg(),
mass_props=sim_utils.MassPropertiesCfg(mass=1.0),
collision_props=sim_utils.CollisionPropertiesCfg(),
visual_material=sim_utils.PreviewSurfaceCfg(diffuse_color=(0.5, 0.5, 0.5)),
),
init_state=RigidObjectCfg.InitialStateCfg(lin_vel=[0.3, 0.2, 0]),
)
However, as shown in the image, the sphere I created with code(in the middle) has noticeable edges on its surface, which could be a big problem for my work. I generated another sphere using ‘create->Shape->Sphere’ in the interface tool bar, the rendered result seem fine(left one in the image).
So I assume it is not a problem about my computer’s render ability, is there some parameters in isaacLab python functions that I can use to control the degree of simulation precision so that the generated sphere won’t have noticeable edges?