Revolute Joints Block, State Tragets
조회 수: 1 (최근 30일)
이전 댓글 표시
When I have a value for "Specify Position Target" and I run the simulation, I don't get the same value from the sensor. Any idea, how can I set the mechanism at a specific revolute joint angle?
댓글 수: 1
Vasco Lenzi
2020년 8월 24일
Are you using PS-Simulinkconverter to look at the angle? Or Simulink-PS converter to feed position to the joint? Are all of the SI units correctly handled between Simscape and Simulink (eg rad vs deg)?
Cheers
Vasco
채택된 답변
Vasco Lenzi
2020년 8월 27일
Closing the loop here. The main problem was the initial condition setting at different joint targets. You can check if a system initialized in the desired target by going to the Variable Viewer:
And then checking if the system could initialize correctly:
Usually relaxing some of the target leads to the system initalizing correctly.
댓글 수: 0
추가 답변 (1개)
Ashraf Omran
2020년 8월 24일
댓글 수: 2
Vasco Lenzi
2020년 8월 24일
Hi Ashraf
thanks for answering the questions.
feel free to attach the files on this topic. That may be best since more people may chime in to help
Vasco
참고 항목
카테고리
Help Center 및 File Exchange에서 Assembly에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!