loading
 
python GetArrayVariable problem
Loren John Presley from United States  [4 posts]
7 years
Hello.

I'm having trouble using the rr.GetArrayVariable() function the python API for roborealm. Not the python program in the pipeline. I'm using the API.

It looks like there is no rr.GetArrayVariable() function in the API examples. Can it be added please? I need it to retrieve the NV_ARRAY_OBJ_IDX variable from the AVM Navigator which is in the pipeline.

Many thanks for your support.
Anonymous 7 years
Loren,

You use the same function for an array (this differs from the internal Python module). What you get back is the array as a single string of all entries separated by commas. You'd need to split or break the array based on a comma in order to gain access to an individual element. Its done this way to ensure that non-binary types of languages can also access arrays.

Or did you try this and get something weird back for NV_ARRAY_OBJ_IDX?

STeven.
Loren John Presley from United States  [4 posts] 7 years
Oh, okay.

That should be easy to do, then. Thanks!

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.

 Forum Index