We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4a6832a commit f9f0103Copy full SHA for f9f0103
embodichain/toolkits/urdf_assembly/urdf_assembly_manager.py
@@ -230,6 +230,11 @@ def add_component(
230
raise ValueError("component_type must be a string")
231
if not isinstance(urdf_path, (str, Path)):
232
raise ValueError("urdf_path must be a string or Path")
233
+ if component_type not in self.SUPPORTED_COMPONENTS:
234
+ raise ValueError(
235
+ f"Unsupported component_type: {component_type}. "
236
+ f"Supported types: {self.SUPPORTED_COMPONENTS}"
237
+ )
238
239
component = URDFComponent(
240
urdf_path=urdf_path, params=params, transform=transform
0 commit comments