Asked — Edited

Trying To Make A Plugin For Xv-11 Lidar Using Sureal Controller

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


ARC Pro

Upgrade to ARC Pro

Unlock the true power of automation and robotics by becoming a proud subscriber of Synthiam ARC Pro.

#9  

@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.

#10  

@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

#11  

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.

#12  

@David... Thanks for tackling this.... Much appreciated....

#13  

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.

#14  

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.

#15  

Merry Christmas early, If you find any bugs, let me know,

Thanks!

#16  

Thank you David. You have a telent for sure. Merry Christmas