Synchronous mod connection Matlab, delay simulation

Typically: "How do I... ", "How can I... " questions
Post Reply
luberdis

Synchronous mod connection Matlab, delay simulation

Post 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.

coppelia
Site Admin
Posts: 10339
Joined: 14 Dec 2012, 00:25

Re: Synchronous mod connection Matlab, delay simulation

Post 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

Post Reply