필터 지우기
필터 지우기

How to simulate grabbing an object on Simscape Multibody?

조회 수: 8 (최근 30일)
Hello Everyone,
I have been trying to simulate a process on Simscape Multibody, where a robot arm picks up an object and drops it in a box. I am having a problem with the grabbing and cannot get it done. I know I should use the spatial contact force and I have seen a couple of examples but they are very complicated with many subsystems connected to the block and I cannot really understand them. For example, how can I time in the block the moment that the robot arm has reaced the piece and should grab it now? would really appreciate any help.

채택된 답변

Nathan Hardenberg
Nathan Hardenberg 2023년 5월 2일
I made a very simple example for you (see attachment).
In general a "spatial contact force"-block has to be between all bodies that collide. Sometimes it is approximated with points since the simulation time can skyrocket when using contact forces (I have not done this). Thats why you need to set the following options in my example (you can also play around a bit):
  • Solver Selection: Fixed-step
  • Solver: ode8 (Dormand-Prince)
  • Fixed-step size: 0.001
In general you have to calculate yourself when to close the gripper. It can be done with a Matlab-script, simply time based or something else. The gripper should also be acuated with a force and not a position. Otherwise the part maybe glitches and flies away.
  댓글 수: 5
Ahmed Salaheldin Ahmed Farouk Salaheldin
Thanks, Nathan! your example helped me alot but the moment one of the two grippers touch the box, I get this error.
"An error occurred while running the simulation and the simulation was terminated
Caused by:
Nathan Hardenberg
Nathan Hardenberg 2023년 5월 24일
Does this error occur in my example? If so check, if the options in my original answer are set the same. If not I sadly can't help you. Singularity-Errors can have a lot of reasons from my experience.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Simulation and Analysis에 대해 자세히 알아보기

제품


릴리스

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by