Robotics StackExchange | Archived questions

sdf required attribute

In sdf schema element definition, there is a "required" attribute. It's value might be "1", "0", "". What is the meaning of "" in this context?

Asked by xuzhongxing on 2019-08-18 22:02:11 UTC

Comments

Answers

As documented here, these are the possible values for required:

  • 1: Exactly one is required
  • +: At least one is required, may have more
  • *: Zero or more elements are accepted
  • 0: Optional, not required, If present, there should be only one.

Asked by chapulina on 2019-08-19 12:53:33 UTC

Comments