Hi,
I’m trying to make a simple FastAPI server so I can interact with the python standalone launched version of an Isaac Sim instance. My goal is to be able to send images and other commands to and from the simulation.
I’d like to use something lightweight like FastAPI but am not sure if it is possible.
I have followed the basic livestream standalone example:
/isaac-sim/standalone_examples/api/omni.isaac.kit/livestream.py
This works as intended.
But have wrapped it in a class where effectively the entirety of that script runs when MySimClass.start() is called.
In FastAPI I have a simple route that does just that:
@app.post("/test")
async def test():
MySimClass.start()
return True
When I launch the simulation via FastAPI I see the simulation initialize in the terminal as expected. However, when I go to the streaming client the entire window is grey and I do not know why this is.
Any thoughts? I understand that Omniverse/Isaac has some deep async complexity that the general advice is to not get into, so then my basic question is how can I simply achieve my original goal: to be able to send images and other commands to and from the simulation.
Thanks!