set the mechanical properties

Typically: "How do I... ", "How can I... " questions
Post Reply
ChenCh
Posts: 7
Joined: 12 Jan 2024, 08:37

set the mechanical properties

Post by ChenCh »

I want to design a cuboid located in the middle of two cylinders, by being squeezed by the two cylinders to make the cuboid bend into a circular shape, how do I set the mechanical properties of the cylinder and the cuboid? I am using version 4.6.0.

fferri
Posts: 1309
Joined: 09 Sep 2013, 19:28

Re: set the mechanical properties

Post by fferri »

Currently, only the MuJoCo engine can perform simulation of deformable bodies.

See the example scene in scenes/mujoco/stringsRopesClothsAndSoftBodies.ttt.

ChenCh
Posts: 7
Joined: 12 Jan 2024, 08:37

Re: set the mechanical properties

Post by ChenCh »

I have seen the example, but I still don't know how to set the force, I want to set a cylinder to exert a certain amount of force on other objects, what tool should be used to set it

fferri
Posts: 1309
Joined: 09 Sep 2013, 19:28

Re: set the mechanical properties

Post by fferri »

Apply the force to the cylinder object (sim.addForce / sim.addForceAndTorque) or mount the cylinder onto a joint and apply force to the joint (sim.setJointTargetForce with the joint set in force/torque control mode, or design your own force controller which could be as simple as apply a constant force).

Post Reply