- Spatial Contact Force- https://www.mathworks.com/help/sm/ref/spatialcontactforce.html
- Modeling Contact Force Between Two Solids- https://www.mathworks.com/help/sm/ug/modeling-contact-force-between-two-solids.html
- Using the Spatial Contact Force Block - Bumper Car (example)- https://www.mathworks.com/help/releases/R2023b/sm/ug/using-the-contact-force-block-bumper-car.html
error: Spatial Contact Force 'robotsim_1/Spatial Contact Force' is not connected through its B port to a valid geometry. Resolve this issue in order to simulate the model.
조회 수: 12 (최근 30일)
이전 댓글 표시
I have attached a .slx file. If i simulate it, i am getting an spatial contact error. How to resolve it. And it would be great if somebody add a PID controller to make the robot walk.
댓글 수: 0
답변 (1개)
Raj
2024년 4월 19일
I went through the simscape model and noticed that the port B of Spatial Contact Force block is not connected to a valid geometry. Spatial Contact Force block models the contact between a pair of geometries in 3-D space. Thus it needs to be connected to valid geometries on both of it ports.
In the model, both port number 1 and port number 2 aren't valid geometries and hence an error is thrown while running the model. Ensure that the port 1 and port 2 are valid ports which are connected to another subsytem.
For better understanding on how to use spatial contact force, you can refer to the following documentation and example links below-
I hope this solves the query you had!!
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Simscape Multibody에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!