ami-iit / rod

The ultimate Python tool for RObot Descriptions processing.
https://pypi.org/project/rod/
BSD 3-Clause "New" or "Revised" License
13 stars 3 forks source link

Add helper methods to access resources that could be lists #13

Closed diegoferigo closed 1 year ago

diegoferigo commented 1 year ago

There are a bunch of elements that could be parsed either as single objects or lists. This complicates downstream logic since an instance check should be performed. This PR adds new helpers that always return a list even in case of single objects.