Closed NAMHAUK closed 1 month ago
Hi,
I am the guy who had the issue in #509. Now I am using Isaac Lab and the same solution works. I solved it by using the cpu pipeline and disabling the fabric extension, which in the standard scripts (such as zero_agent.py) is done by calling the --cpu and --disable_fabric in the command line. In your custom script I think it might be sufficient to set them inside your code, the command you could modify might be:
sim_cfg = sim_utils.SimulationCfg(dt=0.01, use_fabric=False, device='cpu')
Have you already tried something similar?
By the way, I found that spawning the particles directly in the script usually works better than importing a .usd file, as it allows better control over the simulation and avoids annoying problems when trying to modify the spawning position. But that is up to you.
Hope that this helps
Thank you very very much! I solved the problem in this way. This is a problem I've found for a long time, thank you very much.
By the way, among the things you mentioned, how is it possible to spawn particles directly into the script instead of using .usd file? When I looked up the Isaac Lab document, I couldn't find a way to spawn particles. That's why I used the method of importing from the .usd file, so please share the method if possible.
Thank you for your kindness!
Hi @NAMHAUK ,
an easy way to do it is to use the sample code provided inside the physics demos inside Isaac Lab. The isosurface one is the one I am currently using. How to integrate the code in the demos inside yours really depends on what you are planning to do and what kind of workflow you are using. An example was in the issue #250 in which the code sample to create cloth was integrated inside the code of this user.
Hope this helps
Thank you for your answer. I think it's a convenient way to do the spawning the particles directly in the script, but I thought the overhead was big for me to learn how to do it, so I decided to use it as a usd file for now.
However, I really appreciate your kind reply.
Question
Hello, I've experienced a rendering issue in using Isaac Sim, and I'd like to ask you a question about solution.
Describe the issue
When Isaac Lab spawn Isaac Sim file (.usd), the object made with particle sampler does not move in the initial state. Other objects are properly simulated.
When i look at the simulation, it looks like the particles have stopped in their initial state. However, looking at the movement of rigid objects pushed out by particles, the particles are simulated, but only the rendering seems to be in the first state.
The screenshot below is a picture taken after a while after the simulation(not first scene). It looks like the particles are not moving in the location they were first created.
I compared the settings between the Isaac Sim running with the omniverse Launcher and the Isaac Sim running with the Isaac Lab, but I couldn't find any difference.
I saw a similar problem in writing (https://github.com/isaac-sim/IsaacLab/discussions/509), but the solution to this writing was about Orbit, so I couldn't apply it to Isaac Lab. I wonder if there is other way to solve this issues.
Steps to reproduce
I tried in the order below, and an issue occurred.
Make particle sampler in Isaac Sim I created particle obect in the order below (Works well with isaac sim without the above error)
Make Isaac Lab Code to import Isaac Sim objects created I created Isaac Lab code in titled "test_usd" in path ("IsaacLab/source/standalone/tutorials/test") This code is a little bit of a change from "spawn_prims.py" that is provided as a tutorial in the isaac lab.
from omni.isaac.lab.app import AppLauncher
create argparser
parser = argparse.ArgumentParser(description="Tutorial on spawning prims into the scene.")
append AppLauncher cli args
AppLauncher.add_app_launcher_args(parser)
parse the arguments
args_cli = parser.parse_args()
launch omniverse app
app_launcher = AppLauncher(args_cli) simulation_app = app_launcher.app
"""Rest everything follows."""
import omni.isaac.lab.sim as sim_utils
def design_scene(): """Designs the scene by spawning ground plane, light, objects and meshes from usd files."""
Ground-plane
def main(): """Main function."""
Initialize the simulation context
if name == "main":
run the main function
System Info
Thnaks for your time.