How can you stream sensor data to ROS then watch a map get built from that data in real time?
Note: the original question was "How can one make a .bag out of a sensor's serial data, then play it back in real-time using gmapping?" - I changed the question to better reflect what I meant to ask, now knowing what I was looking for.
Hi everyone!
What I'm trying to do is to take a sensor's output data - namely the distance measured by a rangefinder - and use gmapping in ROS to create a map from that data. I want the map to update in rviz as more data comes in. Ideally, I want to be able to move the rangefinder around and collect data with it all while watching the map get created/updated in real time on a laptop running ROS (as opposed to surveying the entire area, creating a bag, then watching the map get created AFTER surveying).
I want to get a function similar to what's shown in this video: http://www.youtube.com/watch?v=SY7rSc... (I haven't been able to find any detailed info on the making-of process of this gadget)
Would you do this by creating a .bag file of the data from the sensor? How can you do this with serial data input?