Open anoopsonar30 opened 5 years ago
Adding the line pybullet.connect(pybullet.DIRECT)
before env = DroneNavigateEnv(config = args.config)
does not fix the error even although the pybullet GUI screen gets deactivated and the simulations are running much faster.
After editing my yaml config file to change display_ui to false, and changing the mode from gui to headless, the code seems to be working. However if run in GUI mode, the error still persists. How do I fix that? I need that for debugging purposes!
@anoopsonar30 Did you find a work around this issue?
Nope. Also I think they moved support for this repo to the GibsonEnvV2. I'm currently experimenting with Habitat instead.
Thanks @anoopsonar30 Any chance you are getting the following error while running env = DroneNavigateEnv(config = args.config) within a loop (headless mode)
terminate called after throwing an instance of 'zmq::error_t' what(): Address already in use
It seems like re-initializing environment within a loop allocates same memory address and hence it throws an error.
I'm trying to implement quadrotor initialization in multiple environments using the navigation benchmark scenarios from the csv files in your database. It basically works by reading each line from the CSV file, copying it to a yaml config file and then using that config file to initialize the environment and then run the simulation(done by the precompute cost function which simply resets (env.reset()) the same environment each iteration).
However after the first iteration (although the second config is loaded successfully) I get the following pybullet error -
This happens at the following line in the code below -
env = DroneNavigateEnv(config = args.config)
How do I fix this error?