rock-simulation / mars

MARS is a cross-platform simulation and visualisation tool created for robotics research.
https://github.com/rock-simulation/mars/wiki
62 stars 42 forks source link

Mars fails displaying .scenes #76

Closed Rauldg closed 6 years ago

Rauldg commented 6 years ago

Hi,

I have tried multiple scenes. This output is of Models-Environments/moon_surface. The simulator fails to visualize the main surface. I think that at some point the path it uses to load the textures gets an extra '/'

I am using the version of Mars that is provided by the debian packages of ROCK. I guess it is the stable version? @2maz

~/rock/mars $ mars_app
Active locale (LC_ALL):  [OK]
config file not found: /home/rock-user/workspace/master-18.01/install/configuration/mars_default/mars_Preferences.yaml
Loading default core libraries...
info: Simulator: no console loaded. output to stdout!
EntityFactory: registering factory for type 'smurf'.
EntityFactory: registering factory for type 'urdf'.
info: smurf_loader: added SMURF loader to loadCenter
config file not found: /home/rock-user/workspace/master-18.01/install/configuration/mars_default/configWindows.yml
config file not found: /home/rock-user/workspace/master-18.01/install/configuration/mars_default/mars_Gui.yaml
config file not found: /home/rock-user/workspace/master-18.01/install/configuration/mars_default/mars_Graphics.yaml
set use shader: 1 1
load texture: diffuseMap
     texture file: /opt/rock/master-18.01/share/mars/graphics/resources/Textures/gras.jpg
load texture: diffuseMap
     texture file: /opt/rock/master-18.01/share/mars/graphics/resources/Textures/colored_gravel_seamless.jpg
load texture: diffuseMap
     texture file: /opt/rock/master-18.01/share/mars/graphics/resources/Textures/moon_surface_seamless.jpg
load texture: diffuseMap
     texture file: /opt/rock/master-18.01/share/mars/graphics/resources/Textures/sand_seamless.jpg
load texture: diffuseMap
     texture file: /opt/rock/master-18.01/share/mars/graphics/resources/Textures/rocks_seamless.jpg
load texture: diffuseMap
     texture file: /opt/rock/master-18.01/share/mars/graphics/resources/Textures/wood.jpg
load texture: diffuseMap
     texture file: /opt/rock/master-18.01/share/mars/graphics/resources/Textures/grid.png
load texture: diffuseMap
     texture file: /opt/rock/master-18.01/share/mars/graphics/resources/Textures/grid.png
load texture: diffuseMap
     texture file: /opt/rock/master-18.01/share/mars/graphics/resources/Textures/osb_board_seamless.jpg
initialized postDrawCallback
Loading default additional libraries...
info: Simulator: console loaded. stop output to stdout!
ERROR: could not find SpaceMouse! 
       Do you have read permission on the /dev/input/ device?
config file not found: /home/rock-user/workspace/master-18.01/install/configuration/mars_default/DataBrokerPlotter.yaml
config file not found: /home/rock-user/workspace/master-18.01/install/configuration/mars_default/mars_Simulator.yaml
config file not found: /home/rock-user/workspace/master-18.01/install/configuration/mars_default/mars_Physics.yaml
Scaling image '/opt/rock/master-18.01/share/mars/graphics/resources/Textures/osb_board_seamless.jpg' from (1024,768) to (1024,1024)
ERROR: could not find SpaceMouse! 
       Do you have read permission on the /dev/input/ device?
Load 2
Failed to load object '
                PRIMITIVE
            ' from file '/home/dfki.uni-bremen.de/rdominguez/Models-Environments/moon_surface/mars_scene//../textures/moon_heightmap_small.tif'
load texture: diffuseMap
     texture file: /home/dfki.uni-bremen.de/rdominguez/Models-Environments/moon_surface/mars_scene/../textures/seamless_moon_surface_large.jpg
load texture: normalMap
     texture file: /home/dfki.uni-bremen.de/rdominguez/Models-Environments/moon_surface/mars_scene/../textures/moon_surface_normal.png
2maz commented 6 years ago

The version (branch, commit) you can find out by looking at the changelog.Debian.gz, e.g., zless /usr/share/doc/rock-master-18.01-simulation-mars-app/changelog.Debian.gz

Rauldg commented 6 years ago

It's master on this commit: https://github.com/rock-simulation/mars/commit/f3aca141768721ca45fda8b96a8c66bb90125c39

Maybe the issue was solved in the next commits?

2maz commented 6 years ago

The simulation maintainers might know, but you can try out with the source package -- see documentation on the debian packages on our askbot and look for deb_blacklist.yml.

malter commented 6 years ago

It was a error in the scene not in the simulation. I updated the model.