Is there a way to change ROS Camera prim parameters after creation while the simulator is running in Python? Eg start the camera with some resolution, then change it while simulating.
I tried doing ChangeProperty, but it does not seem to have done anything.
Alternatively, could one delete the prim and create a new one with different parameters? What command would do this?
If you change the resolution property on the ROS Camera prim you need to call stop and play again to properly resize the image. Would that solve your use case?
I don’t think it worked, though I might be doing something wrong:
start_time = time.time()
test = False
if time.time() - start_time > 20 and not test:
test = True
Is the code I’m using to change resolution after having created the camera with:
I am getting the following error:
Apologies for the delay, I’m attaching a modified version of the carter_stereo.py sample here.
I think you are just missing a call to update between stop and play so the renderer has a frame to reset.