Struct data type in URScript

Your feature may already be reported!
Please search on the Feature category and sub categories, before creating one.

Summary

I would like the ability to create a custom data structure.

What is it?

Like a struct in C++, this would allow a programmer to group data of many different types under one name, making it easier to pass between functions.

Why is it needed?

To my knowledge, URScript only allows for a function to return data of a single type (i.e. num, string, pose, etc). I am working on a URScript program that would greatly benefit from having functions that can return data of different types in an organized fashion.

6 Likes