-
Notifications
You must be signed in to change notification settings - Fork 6
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
Deterministic usage not implemented #1
Comments
Thank you for reaching out. 'holding_register_write()' definitely works as it's moving joints of my OpenVMP robot via this driver. Could you, please, share debug output? You will need to define 'DEBUG' at compile time and, then, change ROS log level to 'debug'. I would love to see contribution to this module. It is definitely used. My own attention is focused on the robot itself and I didn't make any changes to this layer recently as it already works for all the hardware I need at the moment. |
It would help to understand better how your code is different from this one, especially in terms of class inheritance. Do you plan to publish your code? Is there any chance to look at your code in some development branch on GitHub? If not, we should probably Zoom or Google Meet to dive deeper into your problem. If you want to set up a call, please reach out. |
Finally I had some time to try it again. Taking a look at only the code snippets in the README at the bottom. The factory way compiles and the implementation way does not. I quickly checked your stepper motors code and you seem to be using the factory method. So this compiles: #include "remote_modbus_rtu/factory.hpp"
...
auto modbus_rtu_impl = remote_modbus_rtu::Factory::New(this);
modbus_rtu_impl->holding_register_read(...);
... and this: #include "remote_modbus_rtu/implementation.hpp"
...
auto modbus_rtu_impl = std::make_shared<remote_modbus_rtu::Implementation>(this);
modbus_rtu_impl->holding_register_read(...);
... throws the following error message when compiling:
Do you use only native API calls somewhere? Also I am curious about following:
|
I tried using the modbus_rtu library to communicate with some motors. I wanted to use it the way described in your README. However the functions
holding_register_*
seem only to be virtual functions yet. Maybe I have overlooked something.I tried to use the provided service call API and the read seems to work or at least I am getting a response back. However the
holding_register_write
and theholding_register_write_multiple
do not seem to work. Is it also because it is not implemented yet? At least I saw a comment on the last line of this README.It would be nice to at least mention if it is implemented or not in the main README. Some more details on the API and on the code structure would also help to understand the code better. If the project is still running I would be interested in taking a look at it and contribute to it.
Thank you and keep up the good work!
Here is the stderr output when I tried to implement the deterministic way;
The text was updated successfully, but these errors were encountered: