Asked
— Edited
I am making a plugin to use the XV-11 LIDAR with the GetSurreal 1.2 controller in ARC, but I am having an issue on step 6.5 of the plugin tutorial. I tried creating the stub plugin and going to my plugins, but I get a 404 error.
Just letting you know. Let me know if there is anything I can do to get the XML file that is required.
Thanks David
@DJ Sorry, I didnt see the Array sorting plugin earlier. I will take a look at that to see if it is what I am looking for.
@DJ I am trying to use this on an existing variable array called $LIDAR to update the points as they are discovered by the XV-11. This looks to be the wrong way to do this as when I enable this before my MakeMap function, the MakeMap function quits doing anything.
Distance and direction are both int variables.
EZ_Builder.Scripting.VariableManager.VariablesArray["$LIDAR"].SetValue(distance, direction);
Can you offer some suggestion on how to update an existing element in a variable array? It seems that I am totally misunderstanding the use of this.
Also, the data isn't reflected in the variable watcher control while this is running. I don't know if there is a commit or something that I am missing here.
I have attached the project if you would be so kind as to take a look at it. This isn't what I would call clean code... Any other suggestions would be very welcome.
XV-11.zip
DOH! After putting something useful in my catch block I can see the error that is being reported. Maybe I can do something with this information.
@David... Thanks for tackling this.... Much appreciated....
Still no joy. The only part that is left to having something working is to send all of these values back to the variable manager. For some reason, I can't figure out how to do that for the life of me. It seems like it is something so simple that I am missing but I am just blind to it right now for some reason. I know why the values in the variable watcher aren't updating (because I am not sucessfully updating them
).
I guess that I could send the variables through the SDK via TCP but to me that seems way silly. I will look in the SDK to see if there is something I am missing in there.
From there I will work on performance and memory load some, but there will be something that is working for these sensors that don't cost $400. It works pretty well for a little over 1/3 the price.
No problem Richard. It is a decent LIDAR for the price for sure.
EZ_Builder.Scripting.VariableManager.VariablesArray["$LIDAR"].ElementAt(direction2).SetValue(distancetext) seems to work.
There is no reason that I shouldn't be able to finish wrapping this present and get it delivered by Christmas Morning.
Merry Christmas early, If you find any bugs, let me know,
Thanks!
Thank you David. You have a telent for sure. Merry Christmas