Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add types to rosidl_generator_type_description #840

Open
wants to merge 9 commits into
base: rolling
Choose a base branch
from
Prev Previous commit
Next Next commit
fix field_type_capacity
Signed-off-by: Michael Carlstrom <rmc@carlstrom.com>
  • Loading branch information
InvincibleRMC committed Nov 23, 2024
commit 486b95a399e5c38cc285609e5fc8418a263e7058
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,8 @@ def field_type_capacity(ftype: definition.AbstractType) -> int:
if isinstance(ftype, definition.AbstractNestedType):
if isinstance(ftype, definition.Array):
return ftype.size
elif isinstance(ftype, definition.BoundedSequence):
return ftype.maximum_size
return 0


Expand Down