Closed osrf-migration closed 5 years ago
Original comment by Arthur Schang (Bitbucket: Arthur Schang).
Original comment by Nate Koenig (Bitbucket: Nathan Koenig).
The problem is that the models are stored in the /home/developer
directory in docker, and resource URIs in the model use absolute paths. This is part of the reason for https://bitbucket.org/ignitionrobotics/ign-gazebo/pull-requests/397.
You have two options for playback:
/home/developer
directory and put all the necessary models in the /home/developer/.ignition/fuel/...
directory.Original comment by Alfredo Bencomo (Bitbucket: bencomo).
Original comment by Arthur Schang (Bitbucket: Arthur Schang).
Actually, I’m running this from inside the subt_docker
image so my models are actually in /home/developer/.ignition…
. It turns out there’s actually a different problem:
The log file states an error for:
[GUI] [Err] [SystemPaths.cc:434] .... resolved to path [/home/developer/.ignition/fuel/fuel.ignitionrobotics.org/openrobotics/models/X3 UAV Config 1/4//meshes/propeller_cw.dae] but the path does not exist
My directory looks like this though: /home/developer/.ignition/fuel/fuel.ignitionrobotics.org/openrobotics/models/X3 UAV Config 1/5/...
The difference is in “/X3 UAV Config 1/4/…” to “/X3 UAV Config 1/5/…”
So where is the difference between 4 and 5 coming from? Is it a version download? I built this image from a Dockerfile with ign download commands ending in “-v 4”
Even more confusing is that I just ran:
ign fuel download --url "https://fuel.ignitionrobotics.org/openrobotics/models/X3 UAV Config 1" -v 4
ign fuel download --url "https://fuel.ignitionrobotics.org/openrobotics/models/X3 UAV Config 2" -v 4
ign fuel download --url "https://fuel.ignitionrobotics.org/openrobotics/models/X3 UAV Config 3" -v 4
ign fuel download --url "https://fuel.ignitionrobotics.org/openrobotics/models/X3 UAV Config 4" -v 4
and a new directory “/X3 UAV Config 1/6/…” was populated with models and “/X3 UAV Config 1/4/…” is still nowhere to be found. I can probably fix my immediate problem by just moving the models but this issue might occur for people down the line if Ignition does not search for other numbered directories following the platform name.
Alfredo is probably correct to mark this as an enhancement, or at the very least a trivial bug, because it only affects the meshes.
Original comment by Arthur Schang (Bitbucket: Arthur Schang).
Update: copying the <vehicle config>/5/...
to <vehicle_config>/4/...
did solve my issue. I’ll mark this as resolved but I think that this should be reviewed later on as an enhancement to check for other <vehicle_config>/#/…
directories as a fallback if the desired one is not present and issue a series of warnings as opposed to errors if the specified directory # is fluid as opposed to a specific model version. However if this directory number is supposed to be a specific version and commands such as ign fuel download --url "https://fuel.ignitionrobotics.org/openrobotics/models/X3 UAV Config 1" -v 4
can resolve this issue, I believe this is a non-issue.
Original comment by Arthur Schang (Bitbucket: Arthur Schang).
Check previous posts.
Original comment by Alfredo Bencomo (Bitbucket: bencomo).
@azeey pointed out this:
Original report (archived issue) by Arthur Schang (Bitbucket: Arthur Schang).
The original report had attachments: Screenshot_from_2019-09-18_10-43-24.png, Screenshot_from_2019-09-18_10-47-16.png
I am experiencing the following errors and visualization issues when attempting to playback a Cloudsim Log file including an X3 vehicle in configuration 1:
I’ve tested launching the same setup locally with both a fully updated
osrf/subt-virtual-testbed:latest
image and a fully updated locally builtsubt_shell
docker image using the commands./run.bash osrf/subt-virtual-testbed tunnel_circuit_practice.ign robotName1:=alpha robotConfig1:=X1_SENSOR_CONFIG_1 robotName2:=bravo robotConfig2:=X2_SENSOR_CONFIG_1 robotName3:=charlie robotConfig3:=X3_SENSOR_CONFIG_1 robotName4:=delta robotConfig4:=X4_SENSOR_CONFIG_1
andign launch tunnel_circuit_practice.ign robotName1:=alpha robotConfig1:=X1_SENSOR_CONFIG_1 robotName2:=bravo robotConfig2:=X2_SENSOR_CONFIG_1 robotName3:=charlie robotConfig3:=X3_SENSOR_CONFIG_1 robotName4:=delta robotConfig4:=X4_SENSOR_CONFIG_1
respectively with both being able to successfully visualize the X3 without any errors (as shown in the screenshot below) but when playing back the log file from Cloudsim on thesubt_shell
image I am encountering these errors.I have tried clearing my ignition models and re-downloading but I have experienced the same result. For clarification in the screenshots, the X3 is shown as a small white box as opposed to a quadrotor.