BlenderProc icon indicating copy to clipboard operation
BlenderProc copied to clipboard

[BUG]: TypeError when loading urdf with stl mesh.

Open saprrow opened this issue 2 years ago • 1 comments

Describe the bug TypeError when loading urdf with stl mesh or ply mesh.

General Information

  1. Which BlenderProc version are you using? BlenderProc 2.4.1

  2. On which operating system are you? Ubuntu 20.04

  3. Have you checked the issue tracker to see if a similar issue has been opened? No similar issue found.

  4. 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:

  1. Provide the full command you used to run BlenderProc: blenderproc run test_urdf.py
  2. Provide the full python file, you used:
import blenderproc as bproc

bproc.init()

robot = bproc.loader.load_urdf("FPT_Hand_STL.urdf")

  1. 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. Screenshot from 2022-09-15 14-32-48

Additional context Add any other context about the problem here.

saprrow avatar Sep 15 '22 06:09 saprrow

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

themasterlink avatar Sep 15 '22 06:09 themasterlink

Has been fixed.

themasterlink avatar Sep 22 '22 15:09 themasterlink