osrf / srcsim

Space Robotics Challenge
Other
9 stars 4 forks source link

Error loading textures #95

Closed osrf-migration closed 7 years ago

osrf-migration commented 7 years ago

Original report (archived issue) by Harish Balasubramaniam (Bitbucket: harishbalasub).

The original report had attachments: SRC_finals_gzclient_camera(1)-2017-02-23T22_20_30.475124.jpg


Some of the textures dont load properly (See attached picture). Here is the error during loading

<< [ INFO] [1487917187.953218727]: waitForService: Service [/gazebo/set_physics_properties] has not been advertised, waiting...

Loading > buildSrc[Err] [Material.cc:93] Unable to find texture[model://mars_rock_1/materials/textures/mars_rocks.png] in path[/opt/ros/indigo/share/srcsim/models/mars_rock_1/meshes/] [Err] [Material.cc:93] Unable to find texture[model://mars_crate/materials/textures/crate.png] in path[/opt/ros/indigo/share/srcsim/models/mars_crate_long/meshes/] [Err] [Material.cc:93] Unable to find texture[model://mars_rock_1/materials/textures/mars_rocks.png] in path[/opt/ros/indigo/share/srcsim/models/mars_rock_2/meshes/] [Err] [Material.cc:93] Unable to find texture[model://mars_crate/materials/textures/crate.png] in path[/opt/ros/indigo/share/srcsim/models/mars_crate/meshes/] [Msg] Task [1] created

osrf-migration commented 7 years ago

Original comment by Louise Poubel (Bitbucket: chapulina, GitHub: chapulina).


This has happened to me before. I believe it was solved when I upgraded Gazebo. What Gazebo version are you using?

osrf-migration commented 7 years ago

Original comment by Harish Balasubramaniam (Bitbucket: harishbalasub).


Gazebo multi-robot simulator, version 7.4.0 ?

osrf-migration commented 7 years ago

Original comment by Louise Poubel (Bitbucket: chapulina, GitHub: chapulina).


Ok, I think that upgrading to 7.5.0 should fix this. You can try:

sudo apt-get update
sudo apt-get upgrade
osrf-migration commented 7 years ago

Original comment by Nate Koenig (Bitbucket: Nathan Koenig).


I'm assuming this issue is resolve since there has been no additional comments. Please re-open if this is not the case.

osrf-migration commented 7 years ago

Original comment by Harish Balasubramaniam (Bitbucket: harishbalasub).


I updated to latest clone of srcsim. The textures seems off. Im using gazebo 7.7 With srcsim version of april 17, textures seemed ok. [Link Text](Link URL)texturebad.jpg

osrf-migration commented 7 years ago

Original comment by Steve Peters (Bitbucket: Steven Peters, GitHub: scpeters).


what do you have for the GAZEBO_RESOURCE_PATH environment variable?

osrf-migration commented 7 years ago

Original comment by Harish Balasubramaniam (Bitbucket: harishbalasub).


I only see a GAZEBO_MODEL_PATH

<< harishb@harishb-Macmini:~$ env | grep GAZEBO GAZEBO_MODEL_PATH=/home/harishb/srcsim_050917/install/share/srcsim/models:/home/harishb/ariac_ws/install/share/osrf_gear/models:/opt/ros/indigo/share/srcsim/models: IS_GAZEBO=true

osrf-migration commented 7 years ago

Original comment by Louise Poubel (Bitbucket: chapulina, GitHub: chapulina).


@clalancette was having the same problem where only the heightmap texture was missing. We debugged a bit and it looked like Gazebo was searching the right directory, the texture was there, but it wasn't loaded. I remember there were errors on the ogre logs.

Are the camera images seeing the same error?

osrf-migration commented 7 years ago

Original comment by Jeremy White (Bitbucket: knitfoo).


I see this as I switch between the released srcsim and various source builds I try. For me, if I remove ~/.gazebo/models and ~/.gazebo/paging, and allow them to rebuild, I eventually get the correct textures back.

osrf-migration commented 7 years ago

Original comment by Ian Chen (Bitbucket: Ian Chen, GitHub: iche033).


The heightmap missing texture problem could be due to heightmap cache in ~/.gazebo/paging. If this happens again, try and clear that directory first and see if it fixes the issue, before doing the time-consuming rebuilds.

osrf-migration commented 7 years ago

Original comment by Harish Balasubramaniam (Bitbucket: harishbalasub).


Thanks. Clearing .gazebo paging and reinstalling models did the trick