How to write rate sleep in a loop in my reactJS app

asked 2022-12-03 05:43:30 -0500

Helloo! Im making a reactJS app to control the pioneer robot of my robot lab in my university. I want to set a goal point for the robot. I use the odom topic to check the angle first , but the app is crushing. I read in the internet that it needs ros rate sleep in every loop ros needs. Im trying to find how to use rate sleep in reactJS but i cant find it. Can someone help me please?

edit retag flag offensive close merge delete