Closed eden-desta closed 3 years ago
Hi @edesta-be thanks for reporting the issue, would you please offer your detailed env, e.g. ROS2/nodejs/rclnodejs version? I try to reproduce it on my local Linux host, but it seems workable.
My env is:
Env: Node.js: v15.0.1 ROS2 Foxy Fitzroy -- Patch Release 3 Ubuntu 20.04 rclnodejs v0.16.0
Thank you @minggangw
Because rclnodejs, ROS2 Node.js client, hasn't been verified on Node.js higher than 12, I suggest you could downgrade your Node.js. Actually, there is some known issue (https://github.com/RobotWebTools/rclnodejs/issues/713) on the higher version of Node.js
Hi! Thank you for your help! I downgraded to 12.19.0 Node.js and it worked!
It might be worth investigating still but for the time being I am all set! Thank you for your time!
My pleasure, I will update here once it works on Node.js v14.x and v15.x
Hi everyone! I was running the simple example and experimenting with different types of ROS messages when I had a failure trying to subscribe to a Joy data.
I am attaching my publisher.html and subscription.html for your to recreate.
For your reference -- the error ONLY occurs on subscription. without trying to subscribe to the Joystick data the publisher is able to happily publish the data with no problem (and i can echo it out in my terminal).
But this is my error below:
PUBLISHER
SUBSCRIPTION