dfki-ric / phobos

An add-on for Blender allowing to create URDF, SDF and SMURF robot models in a WYSIWYG environment.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Better error messages in representation.py

kevinfoley opened this issue · comments

I was working on a robot with 131 links and got an assertion error from representation.py, on this line:

assert self.input_type in MESH_DATA_TYPES

The generic assertion error and call stack was not helpful for understanding what went wrong or which of the 131 links was causing the problem.

Rather than a simple assert, we should raise an AssertionError with more details about what went wrong. This would make the problem much easier to understand and fix in Blender.