BlenderProc
BlenderProc copied to clipboard
[BUG]: TypeError when loading urdf with stl mesh.
Describe the bug TypeError when loading urdf with stl mesh or ply mesh.
General Information
-
Which BlenderProc version are you using? BlenderProc 2.4.1
-
On which operating system are you? Ubuntu 20.04
-
Have you checked the issue tracker to see if a similar issue has been opened? No similar issue found.
-
Have you changed BlenderProc in any way besides the config file? If yes, are you sure that this change does not affect the problem you are having?
To Reproduce Steps to reproduce the behavior:
- Provide the full command you used to run BlenderProc:
blenderproc run test_urdf.py
- Provide the full python file, you used:
import blenderproc as bproc
bproc.init()
robot = bproc.loader.load_urdf("FPT_Hand_STL.urdf")
- Provide a link to all 3D models you used, if they are from one of the publicly available supported datasets, provide the name or path so that it is possible to reproduce the error.
Expected behavior load urdf with stl mesh without error.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context Add any other context about the problem here.
Hey,
weirdly the arguments have changed, either there was an API change and we didn't detect it or something else changed.
https://github.com/DLR-RM/BlenderProc/blob/981158b11212f5b7d87533395ed42df874e11cf7/blenderproc/python/loader/URDFLoader.py#L337
The arguments are called: axis_forward
and axis_up
. Changing this to this should work.
obj = load_obj(filepath=relative_path, axis_forward='Y_FORWARD', axis_up='Z_UP')[0]
Can you check?
Best, Max
Has been fixed.