I am using Matlab R2018a with simulink and robotics toolbox. I have created a simple publisher node which uses robotics toolbox publisher module to publish a simple periodic pulse signal on a topic. Then i have created a susbscriber node separately, which subscribes to the published topic. But when i run the simulation (both models), i can see that the information received in the msg in subscriber model is not exactly same as the pulse i published in the publisher model. I run both models with same configuration parameters (fixed step size of 0.05). Do you guys have an idea what could be wrong here? I expect to receive the same pulse that i publish, but it's not the same periodic pulse.
Thanks for your cooperation.