Hi everyone,
I’m working on a mechanism that consists of two clamps, each with two degrees of freedom, connected by a tube (as shown in the attached images of my model and Grasshopper definition).
Currently, I have the two Brep rods positioned at (0,0,0), and my plan is to orient them to their corresponding planes using the Orient component. My goal is to simulate the kinematic behavior of this system with Kangaroo, ensuring that each clamp only allows rotation around its defined axes and can rotate and translate to adjust to the proper angle for connection.
I’m having trouble setting up the constraints so that:
- Each clamp only allows rotation around its two axes (Axis 1 & 2 on the left side, Axis 3 & 4 on the right side, as shown in the diagrams)
- The rods are correctly oriented and connected to the clamps, following the movement and restrictions of the mechanism
- The simulation remains stable and realistic
Could anyone advise me on:
- The best way to use the Orient component to move the rods from the origin to their target planes, maintaining the correct orientation relative to the axes?
- How to define the degrees of freedom and rotational constraints for each clamp in Kangaroo?
- Any tips or script examples for connecting the rods and clamps in a way that respects the mechanical logic?
- Should I include collision detection to prevent the tubes from intersecting with each other?
I was also experimenting with inverse kinematics, but I think that approach might be more complicated for this specific mechanism.
Any suggestions, workflow tips, or references would be greatly appreciated!
Thank you in advance!
Clamps_V1.gh (25.3 KB)
Clamps_V1_MW.3dm (551.7 KB)