PickNikRobotics / generate_parameter_library

Declarative ROS 2 Parameters
BSD 3-Clause "New" or "Revised" License
230 stars 43 forks source link

Feature request: Unsigned integers #172

Open Timple opened 7 months ago

Timple commented 7 months ago

Would it make sense to allow uint as a type, next to int?

It would reduce this:

    buttons:
      type: int_array
      validation:
        lower_element_bounds<>: 0

To this:

    buttons:
      type: uint_array

So internally it could do a sanity check on the sign and (for c++) cast to an uint32_t.