Skip to content

[Feature] Improve URDF model loading error messages and diagnostics #903

Description

When loading URDF models that fail to parse, gz-physics sometimes produces cryptic error messages that don't help users identify the root cause.

Problem

Error messages like Failed to load model without specific details about:

  • Which URDF element caused the failure
  • Line number or element path in the URDF
  • Whether it's a link, joint, collision, or visual element

Suggested Improvement

Enhance error reporting to include:

  1. The specific URDF element name/path that failed
  2. A brief hint about what might be wrong
  3. Line/column references where applicable

This would significantly reduce debugging time for users working with robot models in Gazebo. Happy to contribute if this is a welcome improvement.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions