how to use the Simscape-Multibody-Contact-Forces_library?
6 次查看(过去 30 天)
显示 更早的评论
Hey all,
I am trying to simulate a cart driving on an infinite plane (contact between 4 wheels and the plane). i saw I could use the Simscape-Multibody-Contact-Forces_library to do so, but having some problems.
i've downloaded the library, and ran the project. when using the "Sphere to Plane Force" block from the examples, it runs fine. but when I move it to my own model, I see that the values inside are missing (for example, the values for "Transform nZ", "Transform pZ" and so on.
my question is, where can I find this parameters? or how can I add them to my path?
this is the error i'm seeing:
['cart_inv_pend']: The following errors were found in the model cart_inv_pend.
Caused by:
- ['cart_inv_pend/cart1/Sphere to Plane WheelRF/Transform nZ']: The parameter Offset requires a scalar, not a 0 x 0 matrix. Resolve this issue in order to simulate the model.
- ['cart_inv_pend/cart1/Sphere to Plane WheelRF/Transform pZ']: The parameter Offset requires a scalar, not a 0 x 0 matrix. Resolve this issue in order to simulate the model.
- ['cart_inv_pend/cart1/Sphere to Plane WheelRF/Visual PlaBnZ']: The parameter Geometry/Size requires a 3-vector, not a 2-vector. Resolve this issue in order to simulate the model.
- ['cart_inv_pend/cart1/Sphere to Plane WheelRF/Visual PlaBpZ']: The parameter Geometry/Size requires a 3-vector, not a 2-vector. Resolve this issue in order to simulate the model.
thanks :-)
1 个评论
Giovanni Forin
2021-4-22
hi, please tell me that you solved this issue. For no reason when i opened back my model it keeps giving me the same issue. I beg you
采纳的回答
Orel Levy
2021-4-25
1 个评论
Giovanni Forin
2021-4-26
I noticed the same after i wrote you sorry. Eventually for a quick solution it´s possible to enable the visualization (enabling the Visual PlaBpZ variable) update the model and then disable it, but the variable Visual PlaBpZ is still in the workspace.
更多回答(1 个)
Sabine
2022-4-19
Hi, I am currently facing this same issue, but I can't find the parameters in de model workspace of the library. I went through all folders, library files and examples, but nothing looks like the missing parameters. Could you please point out where exactly you found it? Thanks in advance!
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Troubleshooting 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!