Detect object overlapping in Simscape Multibody

조회 수: 3 (최근 30일)
Lukas Wirth
Lukas Wirth 2023년 11월 2일
댓글: Lukas Wirth 2023년 11월 10일
Hello community,
I'm currently working on a project where I'm trying to support my development with Simscape Multibody. The project involves a system consisting of multiple cylinders that are attached to rigid rods (modelled as solids). To ensure flawless motion of the system, I want to build a Simscape model to detect potential collisions in the multibody system.
Ideally, I want to actuate all the cylinders automated to reach all possible positions and automatically detect where objects overlap (and export this information to verify it in my CAD-software).
Normally in SimScape, when objects are overlapping (e.g. a cylinder piston "crashing" into its housing), nothing happens as these end stops have to be specified in the joint properties. Is there a way to detect overlapping objects without letting them collide (and bring the motion to a stop) as it would be the case when you use the "spatial contact force" block?
Thanks in advance.

채택된 답변

Alex
Alex 2023년 11월 10일
Hi Lukas
You can use the Spacial Contact Force block despite it. You just have to set the friction force to None and the Normal Force to Provided by Input and then input nothing. You can recognize the contact with the sensing function, especially the contact frame could be interesting for you.
I hope it will work for you.
  댓글 수: 1
Lukas Wirth
Lukas Wirth 2023년 11월 10일
Hi Alex,
thank you for your answer. I was not aware, that in the later versions of Matlab, you can set the Normal Force to Provided by Input. This was not possible in the 2021 version. After updating to 2023, this worked just as I planned.
Thank you again.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Simscape Multibody에 대해 자세히 알아보기

제품


릴리스

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by