Gazebo does not visualize models correctly if launched from Java

asked 2020-05-11 09:47:46 -0500

b4sti gravatar image

updated 2020-05-11 13:02:52 -0500

Hello there,

I am currently working on a project in Java. The user should be able to launch Gazebo with a selected world from that application. Because I didn't want to execute every command with Runtime.getRuntime.exec() or with the ProcessBuilder, I wrote a bash script to source several files and execute Gazebo with the "roslaunch" command (at the moment with a specific launch file and not with a parameter).

If I start that script within the terminal, it works perfectly and all models, including the ones defined by my project team, are loaded.

However, if a try to execute that script within our Java application, Gazebo does not display the world and the models within correctly although the objects are recognized as I can see from the models' section to the left.

I found a related post where the user dealt with gazebo model path issues. In this case, model paths should be set correctly.

Has anyone an idea why this is not working? I'd be very thankful for any recommendations :)

edit retag flag offensive close merge delete