I’ve finished with 100% accuracy the Topics_quiz (yay!). But there are a few outstanding (very simple) questions in my mind:
1- how do I get from rostopic show the size of the msg.ranges array? I’ve used “msg.ranges[360]” because I’ve looked the forum discussions.
2- My robot was either too fast (and crashing), or too slow (and not moving). In the end I’ve got it running all right with move.linear.x += 0.01. How can I calculate the robot speed? What is the unit of this (m/s) ?
3- I interpreted the quiz info as if I had to write two programs, one subscriber and one publisher. That seems neat, but as I didn’t know how to do that, I’ve written a single program. What would be the best way of doing this? Independent programs for publisher and subscriber, or a single one?