Automaticly change of actuation of joints in Simscape multibody.

조회 수: 1 (최근 30일)
Felix Hund
Felix Hund 2022년 4월 26일
편집: J Chen 2022년 5월 3일
Hello everybody,
I have exported a CAD model with several joints I'd like to actuate. Since there are a lot of, I'm searching for a way to to this automaticly/scriptbased. Simply I just don't want to change the actuation by click but by code.

채택된 답변

J Chen
J Chen 2022년 5월 3일
편집: J Chen 2022년 5월 3일
  1. Use name = gcb to get block names (select a block first)
  2. Use get_param(name,'DialogParameters') to get parameter names. The parameter names you're looking for should contain TorqueActuationMode and MotionActuationMode as part of the names (e.g., RzTorqueActuationMode)
  3. Use set_param(name,'RzTorqueActuationMode','ComputedTorque') or set_param(name,'RzTorqueActuationMode','InputTorque') to specify the torque mode.
  4. Use a similar command to specify the RzMotionActuationMode as ComputedMotion or InputMotion

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Brakes and Detents에 대해 자세히 알아보기

태그

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by