-
Notifications
You must be signed in to change notification settings - Fork 337
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
Are the tool analog inputs available? #83
Comments
It should be published as part of the i/o messages |
The io-messages are parsed from the masterboarddata (or something like that) and the tool inputs are not in this data block. I succeeded with the rtde-Interface, an example is in my fork: https://github.com/NikolasE/ur_modern_driver/blob/master/scripts/rtde_example.py |
Ahh yea, I never noticed that. |
How much work is it to get and parse the tool data block? And how fast is it? |
a rough estimate is 100-200 lines of code injected the right places :) |
If you point me to the right places, I could be tempted to fill them. The modern_driver works well so if I'd love to contribute. |
I started to implement the ToolData: https://github.com/NikolasE/ur_modern_driver/commit/13dc20e8549e1d149a8e8529598005e710ecc7ed I wrote some parsing functions to have clearer code and to simplify the implementation of other data-packages. So far, I did not succeed in parsing the floats, and I saw that you read floats like this:
ntohl returns an uint32_t and in the current implementation, the value I get is always zero. Could you maybe explain your approach here a bit? What do you think about fixing the parseFloat-function and then rewriting the other functions with the parse* so that it's a bit more readable? BTW: I fixed the indentations. Why do you use double indents? |
I just wanted to mention ros-industrial/universal_robot#272 (comment) here as a point of discussion. @ThomasTimm: what is your opinion on this? Is With the addition of the |
I'm closing this as we've officially deprecated this package. Refer to the announcement on ROS Discourse. |
I haven't found out how to read the analog inputs of the tool, did I miss it?
The text was updated successfully, but these errors were encountered: