What is the best way to store data

  • I need some brain push. I need solution to store +2000 robot positions. This is part of some RD project. First idea was to add positions directly to array in Karel (but Karel has this limitations). Another ideas is to store datas to *.csv file. That is doable, but csv parsing is pretty slow.


    So does anybody have better idea for this? Extra cell controller is not possible

  • Have you tried just storing them as points in a TP program? You should be able to store 2000 points in a program and then you can access them by copying them from a local point into a position register.


    Here is an example of code to retrieve 1 position from a TP program to a position register. This example will set PR[10] equal to Point 3. Since the storage program calls "End" before any of the motions it won't actually move the robot. Your storage program should be able to hold 2000 points. I tested this in RoboGuide and it works fine, but haven't tested on a real robot to confirm.


Advertising from our partners