loading
 
creating array variable
Ashok E from India  [5 posts]
15 year
        Hi... I've been searching RR and its website for the past two days looking for a way to create integer arrays... Though http://www.roborealm.com/forum/index.php?thread_id=1046#7i> gives some mode of array this stores the value as string only and cannot be used in path planning module...

      Is there any way to create a integer array of values like those created in BLOBS, HARRIS_CORNERS etc....

     I've attached the program... The program indents to path plan a path given by a series of mouse clicks...!!!

Thanks..


program.robo
Anonymous 15 year
Ashok,

Thanks for pointing this out. We will update the documentation.

You should be able to use

ReDim points(4)

points(0) = 100
points(1) = 100
points(2) = 150
points(3) = 200

SetArrayVariable "waypoints", points

as a quick example of how to use SetArrayVariable.

STeven.

This forum thread has been closed due to inactivity (more than 4 months) or number of replies (more than 50 messages). Please start a New Post and enter a new forum thread with the appropriate title.

 New Post   Forum Index