Page 1 of 1

Synchronous mod connection Matlab, delay simulation

Posted: 11 Jun 2019, 12:29
by luberdis
Hi Coppelia

I implement a code for controlling a mobile robot in synchronous connection with Matlab. I set the target velocity of the joints and then I check the state of the robot process in control conditions and then reset target velocity.

The problem and questions is how can I delay in synchronous the algortihm, from the moment i set the velocity until the timestep of 0.01 s finishes and then check the states of the robot again to send the new command.

Re: Synchronous mod connection Matlab, delay simulation

Posted: 14 Jun 2019, 13:03
by coppelia
Not sure I correctly understand your question.
Maybe make sure that your simulation step has finished executing, before sending new values or querying values?

Cheers