Skip to content

Conversation

@emresiimseek
Copy link
Contributor

  • What kind of change does this PR introduce?
    Bug fix

  • What is the current behavior?
    The getParamType function incorrectly maps some ROS message types to 'number' instead of their corresponding array types like 'Float32Array' or 'Uint16Array'. Additionally, ros-typescript -gen always converts these fields to 'number'.

  • What is the new behavior?
    The getParamType function has been added to correctly map ROS message types to their corresponding TypeScript array types when applicable. This ensures that array types like 'Float32Array' or 'Uint16Array' are correctly recognized and handled. The issue with ros-typescript -gen converting these fields to 'number' has been addressed.

  • Other information:

The getParamType function has been added to correctly map ROS message types to their corresponding TypeScript array types when applicable. This function ensures that array types like 'Float32Array' or 'Uint16Array' are correctly recognized and handled, addressing the issue where ros-typescript -gen would always convert these fields to 'number'.
@emresiimseek
Copy link
Contributor Author

Hi @MrBlenny, Can you please review this PR?

Thanks.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants