When opening the world file in webots normally, everything works fine. However, when launching the world file using the WebotsLauncher class, the forests cannot be found by the world. Error: ERROR: JavaScript error: could not open file: /tmp/forest/-745.forest.. Interestingly, the protos, which are also referenced with a relitive path, are found correctly. I am installing the entire webots project to the shared folder.
Steps to Reproduce
Create a webots world with a forest, and a forests directory alongside the world
Launch the world using the ros2 launch file
View error in console
Expected behavior
Forests can be found by worlds launched by ROS
Describe the Bug My project (which lives inside a ros package) has the following strucuture:
and forests inside the world file like:
When opening the world file in webots normally, everything works fine. However, when launching the world file using the WebotsLauncher class, the forests cannot be found by the world. Error:
ERROR: JavaScript error: could not open file: /tmp/forest/-745.forest.
. Interestingly, the protos, which are also referenced with a relitive path, are found correctly. I am installing the entire webots project to the shared folder.Steps to Reproduce
Expected behavior Forests can be found by worlds launched by ROS
Affected Packages List of affected packages:
System