seq or time stamp for publishing a message
Hi I am currently working on a web interface to control a turtlebot and i am using ROSLIBJS but i am not too sure what to put for seq and time stamp for the /MoveBaseActionGoal message. If I put a number, it will work for the first time but it i want the turtlebot to go to another destination after it reached its first goal, it will not work because the time stamp is supposed to be the ROS time now. However, I don't know how to get ros time now on ROSLIBJS.
As far as I can recall the
seq
field should be set for you and you should use ROS time to set the time stamp. I can't look up the documentation for this which is why I'm posting this as a comment.Yeah me too, I understand that I need ros time for the time stamp but I just don’t know how to get it in the JavaScript or ROSLIBJS. Thanks for the help anyway.