Skip to content

How to correctly use slider-crank transmission for cylinders? #374

Discussion options

You must be logged in to vote

MuJoCo's mechanism supports both of these.
Did you actually load my example model in simulate and play with it?

Here is a model that shows how to make both forward and backward slider-cranks, and includes an example of a "broken" mechanism which cannot maintain the requested relationship at the initial state.

educational slider-crank model
<mujoco model="slider-crank">
  <!-- these are the visual properties associated with the slider-crank mechanism: -->
  <visual>
    <scale slidercrank=".1"/>
    <rgba slidercrank="0.5 0.4 0.8 1" crankbroken="0.0 0.6 0.2 1"/>
  </visual>

  <!-- defining some defaults for readability -->
  <default>
    <position ctrllimited="true" ctrlrange="-.1 .1" kp="

Replies: 8 comments 6 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@rohit-kumar-j
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@yuvaltassa
Comment options

@yuvaltassa
Comment options

Answer selected by rohit-kumar-j
Comment options

You must be logged in to vote
1 reply
@rohit-kumar-j
Comment options

Comment options

You must be logged in to vote
2 replies
@yuvaltassa
Comment options

@yuvaltassa
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants