Closed electrobusy closed 6 months ago
Hi! Let's try to solve this for you.
Perhaps the export should point to the world folder instead? Sorry, I have it setup on my old computer as I'm now converting to my new one, so I can't double check it right now.
So some more information on my previous system now that I got a hold of it again:
Ignition gazebo: 6.6.0 Ubuntu 20.04
In .bashrc:
export IGN_GAZEBO_RESOURCE_PATH="$HOME/Development/Bitcraze/Simulation/crazyflie_simulation/gazebo-ignition/"
I indeed get the same issue as you, and now I remember why. The IGN_GAZEBO_RESOURCE_PATH is not for the world file, but to find the crazyflie model. So you would need to still cd into the worlds folder in order to run that .sdf file. But I also saw that the world folder itself can be added to the IGN_GAZEBO_RESOURCE_PATH as well, so I'll update the readme.
Sorry for the late reply.
I tried your latest fix and, after sourcing the bashrc file, it still does not find the world file.
I only managed to run the simulation with the following steps:
1) cd to the crazyflie folder and run the .config file (to load the 3D model of the crazyflie): ign gazebo model.config
2) cd to the worlds folder and run the crazyflie_world.sdf file
NOTE: I also tried to set the IGN_GAZEBO_SERVER_CONFIG_PATH with the (absolute) path of .config file. Surprisingly, even that did not make a difference.
# add path to where gazebo ignition sim files are
export IGN_GAZEBO_RESOURCE_PATH="$HOME/crazyflie-simulation/gazebo-ignition/":"$HOME/crazyflie_simulation/gazebo-ignition/worlds/"
export IGN_GAZEBO_SERVER_CONFIG_PATH="$HOME/crazyflie-simulation/gazebo-ignition/crazyflie/model.config"
Ps.: I wonder if the ign gazebo version difference plays a role here (to be checked on my side whenever I get the chance)
ah oke.. at least you got it to run.
I'm afraid then that this is an issue that we have to pass to the gazebo answers then. Wonder if this has anything with the name change they have done, as they reverted it all back to good old 'only' gazebo, not ignition gazebo.
Hej Kimberly,
After following your README instructions, I am unable to start the simulation, because it seems that it can't locate simulation world:
Environment variable set in bashrc file:
After sourcing it (knowing that Ignition gazebo looks for
IGN_GAZEBO_RESOURCE_PATH*
as mentioned here under "Models, lights, actors"), the absolute paths seem to be correctly set:Some questions (that might help me):
1) Did you happen to install ignition from source or binaries? 2) Have you set any other environment variables (for ignition gazebo)?
Thank you,
Rohan
Ps.: I am using Ubuntu 20.04 with Ignition gazebo 6.9.0 (Ignition Fortress)