I would like to get some ideas on how to measure the force and torque between body and body. #1998
Replies: 12 comments
-
Hello, If I understand correctly, you want to measure the force/torque between the parent and child bodies (the two "phalanges" in this case)? There are sensors to do exactly that! https://mujoco.readthedocs.io/en/stable/XMLreference.html#sensor-force If you add them to the MJCF model of your hand, their readings will be available to you each simulation step. |
Beta Was this translation helpful? Give feedback.
-
Hello, Thank you for letting me know the good features. As you said, I simplified the model and experimented with it, can you tell me why the force and torque are taken abnormally? I will show you my model and mujoco simulator sensor data. XML:
|
Beta Was this translation helpful? Give feedback.
-
Hello, the site should be on the child body, check out the "site" part of the force sensor documentation for details
…________________________________
From: rororofo2 ***@***.***>
Sent: Thursday, April 18, 2024 9:22:27 AM
To: google-deepmind/mujoco ***@***.***>
Cc: Hodossy, Bálint K ***@***.***>; Comment ***@***.***>
Subject: Re: [google-deepmind/mujoco] I would like to get some ideas on how to measure the force and torque between body and body. (Issue #1597)
This email from ***@***.*** originates from outside Imperial. Do not click on links and attachments unless you recognise the sender. If you trust the sender, add them to your safe senders list<https://spam.ic.ac.uk/SpamConsole/Senders.aspx> to disable email stamping for this address.
Hello,
Thank you for letting me know the good features.
As you said, I simplified the model and experimented with it, can you tell me why the force and torque are taken abnormally?
I will show you my model and mujoco simulator sensor data.
XML:
<body name="Test_body_1" pos="0.1 0.1 0.1">
<geom name="Test_body_1" size="0.05 0.05 0.05" type="box" rgba="1 0 0 0.5"/>
<site name="ft_sensor" type="box" pos="0 0 0.05" />
<body name="Test_body_2" pos="0.0 0.0 0.1">
<geom name="Test_body_2" type="box" size="0.05 0.05 0.05" rgba="0 0 1 0.5"/>
</body>
</body>
</worldbody>
<sensor>
<force name="force_sensor" site="ft_sensor"/>
<torque name="torque_sensor" site="ft_sensor"/>
</sensor>
image.png (view on web)<https://github.com/google-deepmind/mujoco/assets/109202740/69880ea6-2a48-4053-a906-b3a34ee339c1>
—
Reply to this email directly, view it on GitHub<#1597 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AJZVOK3YODXH7GZEE37ZJ2LY557EHAVCNFSM6AAAAABGIZTVXCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANRTGMYDKMJQGY>.
You are receiving this because you commented.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
**Hello, Is this what you said correct?
|
Beta Was this translation helpful? Give feedback.
-
Yeah, except remove the site from the parent body and uncomment it in the child body? Or does that give you an error? |
Beta Was this translation helpful? Give feedback.
-
Yeah, The sensor value is still strange Can't I use the mocap to apply external force to the geom?
|
Beta Was this translation helpful? Give feedback.
-
Trying your MWE gives correct results as expected. The huge values show on your figure makes me think there's some collision issue. Maybe a plane oriented the wrong way? You can visualize contact points in Simulate, or try disabling collisions in the Physics options. |
Beta Was this translation helpful? Give feedback.
-
Hello, I'm sorry for the late thank you for your response. It helped me a lot through sincere answers. I have an additional question, so I'd like to ask you, is it possible?
|
Beta Was this translation helpful? Give feedback.
-
Glad you are making progress. Could you please rephrase your point 1? I had trouble understanding it. Could you please share the xml, or describe the hierarchy and where the sensor is? |
Beta Was this translation helpful? Give feedback.
-
Currently, a force/Torque sensor has been attached to that part. The experiment I want to proceed with is that when I hold the object with the gripper and the gripper moves up and down, I want to compare the ft sensor data. Case 1 :
The object was declared as follows, and the data were obtained when the gripper held the object stably and moved upward. Case 2 :
This time, the object is fixed, and I got the data that appears when the gripper holds and moves the object. (In this case, the object does not move and only the gripper moves -> Slip) In this case, the data appears the same, and I wonder if it is measured correctly.. Additionally, is it correct that the data appear similar even if the experiment is conducted in the same way by changing the mass of the object? |
Beta Was this translation helpful? Give feedback.
-
Well, if the object is fixed, you expect the same data measured with any mass (as the slip conditions would stay the same). Do you still see the same measurements when the object is free as well and lifted? |
Beta Was this translation helpful? Give feedback.
-
Yes. |
Beta Was this translation helpful? Give feedback.
-
Hi, I'm a student and I'm trying to use MuJoCo for estimation of the state of holding an object/
I'm looking for some help with how you can measure sensor values
Here is a model which explains my question:
Fingers with the following sensors were modeled.
Currently, the orange part is the force/torque sensor.
I would like to use mujoco simulator to measure Force and torque in simulator like real environment.
Is there a way to implement this using mujoco simulator?
I would really appreciate it if you could tell me how.
Here is a screenshot / video, illustrating my question:
Beta Was this translation helpful? Give feedback.
All reactions