I’m currently working on a program, where I have created an array containing all the points the robot needs. Since some point are evaluated based on other points, the program will generate these. Currently, there are approximately 50 points inside the array, but the program will not write to all the points. Furthermore, do some of the other variables not show up in the variables tab, and the program gives me an error saying a variable is not initialized even though that is not the case.
Does the controller have an upper limit to how many variables it can have initialized or maybe how many values it can store in an array? Or is it possibly the URSim I’m currently using which can’t handle too many variables? Or could it be another factor?
I’m currently using version 3.5 of polyscope.
Thank you.
Hi,
I think you need to provide some more information. A Screenshot of your code would be helpful.
Do you use a script file or is the programm in polyscope directly ?
We also use an array of poses that has 30? entries. No problems.
I think it might be an programm error more likely than poylscope limiting the length of a list.
Try to initalize the array and all your values that you will write to it at programm startup with "0"s
Regards,
Alexander
Be aware, that the maximal length of a variable definition with the Assignment command is 1024 bytes, regardless of the amount of array items. So the more precise your Pose, the shorter the list can be.
PolyScope will only read the first 1024 chars of the Assignment command,.
Thanks for the reply to the both of you. It might be too precise Pose which exceed the limit.