is there any the convenience functions to convert among DynamicData samples and User defined data types #3493
x9527x1024x
started this conversation in
Support
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey guys,
As the title said: "the convenience functions to convert among DynamicData samples and User defined data types"
for example: we have the idl as below.
`struct FootBall {
string name;
};
struct Ball {
string a;
int b;
FootBall football;
};`
And we also have the TypeSupport about Ball and FootBall.
then, is there any way could transfer the struct ball to DynamicData?
`Ball ball;
// fill the data into ball
ball.a = "a";
ball.b = 1000;
ball.football.name = "Serial A";
// convert the ball to DynamicData
??`
Beta Was this translation helpful? Give feedback.
All reactions