How to run a SimMechanics robot model iteratively using Matlab code?
1 view (last 30 days)
Show older comments
Weibing Li
on 23 Jul 2015
Commented: Weibing Li
on 20 Aug 2015
Does anyone know how to run a SimMechanics robot model iteratively using Matlab code? Specifically, I first established a robot model using SimMechanics. After that, I constructed a neural network based controller using Matlab code, which can output signals to actuate the robot joints. The weights for the neural network are randomly generated. To optimize the weights of the neural network, I employed an evolutionary algorithm. To generate initial populations for the evolutionary algorithm, I used the following pseudo codes.
for 1:popsize
Run Neural Network;
Run SimMechanics Model;
Generate Population Individuals;
end
Can someone tell me how to achieve it? Many thanks!
0 Comments
Accepted Answer
Sebastian Castro
on 24 Jul 2015
The following video is a good introduction to some things you can do. It talks about parallel computing also, but you can ignore it if you want.
- Sebastian
More Answers (0)
See Also
Categories
Find more on Robotics in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!