Replies: 2 comments 4 replies
-
Hi @imcelroy thanks for your feedback, the current # Seconds component, range is valid over any possible int32 value.
int32 sec
# Nanoseconds component in the range of [0, 1e9).
uint32 nanosec Would you provide more information about the case you gave, for example if creating a subscription: let subscription = node.createSubscription('builtin_interfaces/msg/Duration', 'time', () => {}); I want to understand when you need an explicit type like the one defined in namespace |
Beta Was this translation helpful? Give feedback.
4 replies
-
Resolved with #1095 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi @minggangw,
First, thank you for all the work you've done on this project!
I am working on a problem where I am dealing with serializing and de-serializing binary ROS2 messages from a front-end app. I would like to directly use the TypeScript interfaces generated from
npx generate-ros-messages
. However, thenumber
primitive type used to describe numbers in the current interfaces isn't explicit enough for serializing different types in numbers (int8
,uint32
,float64
, etc).Would it be possible to build additional TypeScript objects definitions that will facilitate serialization? For example:
Current TypeScript interface generated by
npx generate-ros-messages
:Proposed additional interface in
detail
namespace:Maybe this information is already available somewhere? Thanks for your help!
I would be up for volunteering to work on this feature if you think it is something that could be interesting for rclnodejs.
Beta Was this translation helpful? Give feedback.
All reactions