how to keep publishing a same message in roslibjs
Hi everyone, I am trying to control a mobile robot using voice recognition through a website. The problem is my robot only move if a callback funtion of subcribe is call, which means subcriber keep receiving twist message. If I use a keyboard it would be easy because I just keep pushing the button. But I am using voice recognition so it takes a website a little time to recognise my voice and I can't keep talking to make my robot move. I tried to look at roslibjs API and I just find a throttle rate, which is "the rate (in ms in between messages) at which to throttle the topics". But it didn't work. I feel it like a latch option in rostopic pub command in terminal, it just publish 1 time and done, not any more. Thanks for reading and sorry for my english