-
Notifications
You must be signed in to change notification settings - Fork 72
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
rclnodejs generate-ros-messages ROS2-Shared memory #959
Comments
Hi @Tombliboo96 thanks for your feedback,
Not sure it's what you called "shared memory", so do you meet any errors, like crashing? |
Hi, @minggangw I got an error when using generate-ros-messages to convert idl file to js file and apply,
}; |
Currently, rclnodejs doesn't support |
I use the generate-ros-messages tool described in https://github.com/RobotWebTools/rclnodejs to generate the corresponding js file for the IDL file, and found the generated js file in /node_modules/rclnodejs/generated/, but it cannot be used normally; @default (value=0) |
Would you share your |
char[256] data |
@minggangw Thank you for your reply, it's my problem, thank you |
So I will close this issue, thanks! |
Description
Hi, I am using npx generate-ros-messages to parse the idl files in
https://github.com/ZhenshengLee/ros2_shm_msgs
and run a nodejs project. However, when running the project, there is an error in the generated js file under node_modules/rclnodejs/generated/ due to incorrect field names parsed by
deallocator.freeStructMember(refObject, UInt8Wrapper.refObjectType, 'size');
I found that only the data field is returned in Uint8Wrapper while idl files also contain both data and size fields.
Steps To Reproduce
I use https://github.com/ZhenshengLee/ros2_shm_msgs project to send ImageData to connect with rclnodejs, deploy the msg in the project to the system, and use the generate-ros-messages in rclnodejs for js conversion. Nodejs receives data through rosSubscriber
Expected Behavior
I want to connect to rclnodejs using shared memory in ROS2, not sure if it is feasible
Actual Behavior
The text was updated successfully, but these errors were encountered: