namgk / node-red-contrib-ros

Node-RED nodes for connecting to ROS bridge
MIT License
15 stars 15 forks source link

high speed CAN bus data missing messages #9

Open rvxfahim opened 9 months ago

rvxfahim commented 9 months ago

Description I am subscribing to a topic where the publisher is publishing data every 20ms from a ESP32. the json data is around 100 bytes. I can do rostopic echo /my_topic and verify that all messages are coming and none of them are missed in the terminal and the same is true for a python subscriber where no data is missing. However, if I debug the subscriber in nodered it shows some json messages are skipping. For e.g. I am supposed to receive 10, then 20 , then 30 in one of the key values which is increasing by 10, but nodered debug shows jumps from 10 to 50 then 60 then 90.

Library Version: ROS Version: 1 Platform / OS: docker container latest nodered image running on desktop with 6 cores, an SSD and 32GB RAM all devices are connected via ethernet, no wifi I tried using a rate limit and set it to 0.01 (10ms) that didn't help either.