How to use ros rate sleep in my ReactJS app

asked 2022-12-03 05:46:50 -0500

Hello! Im making a reactJS app to control remotely the pioneer robot of robotics lab in my university. I use odometry to check if the robot has the angle i need in a while loop but is crashing. I read in the internet that it needs ros rate sleep in every loop ros needs, but i cant find how to use it in react. Can someone help me how to use ros rate sleep in the loop of my react app please?

edit retag flag offensive close merge delete