-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Including other idl files doesnt work #107
Comments
Okay it looks like creating an instance of TypeTest.Type2 does not create and instance of OtherType.Type3 for the other_type variable. o = OtherType.Type3
t3 = TypeTest.Type2
t3.other_type_var = o #now and instance
t3.other_type_var = OtherType.Type3 #or now and instance
# now this value can be set/get
t3.other_type_var.other_type = 19.0
print(t2.other_type_var.other_type) Does it make sense that you have to set this manually on initialization? ======================================================================== #!/usr/bin/python3
import fastdds
from TypeTest import TypeTest
from OtherType import OtherType
o = OtherType.Type3
t1 = TypeTest.Type2
t2 = TypeTest.Type2
t1.type2_d = 7777.0
print('a variable that is set', t1.type2_d)
print('a variable that is not set', t2.type2_d) Output:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello,
I have an issue with including other types in the python generated code.
For example creating the two files:
TypeTest.idl
OtherType.idl:
Using the test code:
Output:
We can see the dir(other) is okay and has a dict method and shows a double variable "other_type".
dir (t2.other_type) has no dict and is missing the double variable other_type.
Setting and getting other_type for struct "other" is okay.
Setting and Getting the variable other_type via TypeTest t2 is invalid.
Is this the expected behavior?
Thanks
The text was updated successfully, but these errors were encountered: