Skip to content

Add getParamType function to handle ROS message type mapping #25

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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