-
Notifications
You must be signed in to change notification settings - Fork 64
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
Message._fill_message_args() fails on messages with fields of type 'time[]' #13
Comments
Can you please retry it with a current checkout of rospy? The commit e8e0f3e might already solve your use case. |
Thank you. That solves our most important use cases. It does not, however, handle the case when a list of ints or longs is supplied. So this works fine:
But this is still broken:
|
I am not sure if |
I don't know whether it's documented, but it works for non-array fields:
The logic that handles it is on line 394 of message.py :
|
Can you please check if pull request #19 fixes your use case? |
Yes, that fixes it. |
enable int/long values for list of time/duration (fix #13)
Thanks for confirmation. Patch is merged and will be release with the next version of genpy. |
(on genpy version 0.4.10, ros_comm version 1.9.44)
To reproduce: define a message "rosbugs/msg/TimeArray.msg" with a single field:
Build it and then try:
This fails with the error:
It looks like this could be fixed by inserting a new case around line 420 of message.py, handling the case when
base_type
is a time type.The text was updated successfully, but these errors were encountered: