-
Notifications
You must be signed in to change notification settings - Fork 48
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
Cannot read encoders after resetting world #685
Comments
Thanks for reporting the issue. Which version of YARP are you using? |
Are you setting the |
If you read the data from the port with |
No, but it does not work even if I do so.
No, it stops as soon as I press Ctrl+R. And if I try to read it again, it gets stuck as follows:
|
Ok, then there is something strange going on in the wrapper. I do not see anything strange in the code that changed recently, does the gazebo terminal output some error or similar? |
I've just noticed that even if it stops as soon as I press Ctrl+R, if I wait about 3 min it starts streaming data again.
If
while this is what appears right after
|
Ok, thanks. Probably there is some kind of comparison on the current time in the network wrapper server, and if you reset at instance t=100s, it then waits again for t=100s to start again. By the way, I wonder if you tried to do Reset World States (I can't recall the exact name) instead of doing Reset World? |
I guess you're referring to I've tried this one, but it seems not to have any effect on the model. |
Unfortunatly I will not be able to look into this in the next week, if you want to debug yourself I suggest to look into https://github.com/robotology/yarp/blob/yarp-3.9/src/devices/controlBoard_nws_yarp/ControlBoard_nws_yarp.cpp#L454-L552 and understand at which point the code blocks when there is a Gazebo reset. |
When running Gazebo with the
gazebo_yarp_clock
, if I reset the world (ctrl+R
) and, then, I try to run theyarpmotorgui
, this latter fails to read the encoders.The problem does not happen when not using
gazebo_yarp_clock
.How to recreate the error:
conda list -n metaCub
Terminal 1:
Terminal 2:
Insert the
ergoCubGazeboV1_1
model, thenctrl+R
.Terminal 3:
The text was updated successfully, but these errors were encountered: