-
Notifications
You must be signed in to change notification settings - Fork 18
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
Simulink time and yarp time diverge #179
Comments
I think this is normal due to how the
|
Note that this kind of problems would be avoided by using some more proper form of Co-Simulation (https://dl.acm.org/citation.cfm?id=3179993) between the Simulink simulation and the Gazebo simulation, such as the one described in #164 . |
thank you @traversaro for the detailed explanation. Accordingly, when we use Simulink and Gazebo, the incoherency of |
Yes, the real time synchronizer tries to enforce the matching between the simulink and real time. The Yarp time is synchronized only if you don't use any network clock, situation quite uncommon that can be ignored. In the past we had few problems of small mismatches between simulink time and real time #160 (solved bypassing simulink gui), but in general synchronization is very good as you have shown. |
Thank you @diegoferigo, I got my answer. |
I am using Simulink with Gazebo. I noticed that the Simulink time and Yarp time are not coherent. In fact, Simulink always has a delay with respect to Yarp time. I checked the synchronization with a simple Simulink which I am sure does not need much time for running as the following,
So, I don't get or send any data to the robot and just read Yarp time. The comparison of Yarp Time and Simulink time is interesting,
As @FabioBergonti suggested I tried this simulation also on the @Giulero 's laptop and the result was the same.
I also tested this simulation with the real robot (i.e. without gazebo). In this case, the Simulink and the Yarp time are coherent as the following
I can not understand what is the problem! Is it any problem with Gazebo? Is it so heavy that consumes such amount of memory that even a simple Simulink file takes much time to run?
The text was updated successfully, but these errors were encountered: