I have a robot in my project that gives me X and Y coordinates. I want to export these to a csv file, can anyone give me some ideas? Here is the part of the code that gives me the data.
robot.subscribe(function(message) {
myChart.data.datasets[0].data.push({x:message.pose.pose.position.x.toFixed(2), y:message.pose.pose.position.y.toFixed(2)});
myChart.update();
});
The data on the console looks like this, I get it for about 1 minutes.