Page 1 of 1

speed control based on fuzzy in matlab

Posted: 17 Sep 2018, 22:49
by Ahmed NMA
Hello,
Please help me
I want to control the velocity of joint by a fuzzy controller, which is implemented in Matlab The output of Fuzzy controller is control signal I want function its input is a control signal and its output is velocity
Another problem I have a delay between vrep and Matlab Thanks a lot

Re: speed control based on fuzzy in matlab

Posted: 21 Sep 2018, 11:14
by fferri
Joint controllers can be written using the joint callback functions but you need to write those as Lua scripts inside the V-REP simulator.

I don't know whether you would be able to use remote communication in the joint callback (such as one of these) or the other way round e.g. with the Remote API, due to latency.

Probably -if your controller is not too complex- it's better to port it to Lua code.

Re: speed control based on fuzzy in matlab

Posted: 22 Sep 2018, 00:00
by Ahmed NMA
Thanks for your reply fferri
But, i am a new for using v-rep program and i want to develop a controller
Please, you can give me any example for using the joint callback functions with matlab for controlling the joint

I did one, the controller output is the control signal
The controller is in the matlab but the readings aren't correct