Detecting Self Collision With Manipulator In Simulink/Simscape

I'm trying to train a robot manipulator with reinforcement learning for path planning. I have the model of the manipulator build in Simulink/Simscape. When I run the simulation for training, the manipulator is constantly overlapping with itself, for example the links would go into the base. I was hoping to be able to detect self collision then terminate the training episode. So would it be possible to detect these self collisions of my manipulator model in Simulink/Simscape?
Thanks and regards

1 Comment

Also would adding contact forces between the links and the base help in this situation? Would adding those blocks help prevent the components of the manipulator from overlapping with eachother?
Thanks

Sign in to comment.

Answers (0)

Categories

Asked:

on 16 Feb 2025

Commented:

on 16 Feb 2025

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!