objects mass and forces units
1. What are the units of the ODE objects mass? for examples in the demo it is 0.04.
2. I'm trying to apply field force on the tool using:
and then on the cube using:
in the two cases, the force on the haptic device (when I lift the cube with the gripper) is different.
my question is, are the units the same in both cases? because the forces are different with a constant scaling factor. (in the second case the force is larger)
The different demonstrations use MKS system of units. However the forces that are applied to the hapttic device are sometimes scaled in order to adjust for force limitations of the haptic devices as well as different workspace scale factors that need to be applied.
In example 01-ODE-cube, if you wanted to normalize everything, you would modify
ODEobject->addExternalForceAtPoint(-0.3 * interactionPoint->getLastComputedForce(), collisionEvent->m_globalPos);
with the following:
ODEobject->addExternalForceAtPoint(-1.0 * interactionPoint->getLastComputedForce(), collisionEvent->m_globalPos);
Regarding the workspace, you could set the scale factor to 1.o by modifying line:
with the following:
Depending of the haptic device that you are using, you may also need to adjust for the stiffness of each object as well as their size.
I will try to explain better my situation:
In my experiment I lift a cube that connected to a vertical spring. I want to apply force on the tool that is proportional to the length of the spring.
When I apply the force directly on the tool (using m_tool->m_lastComputedGlobalForce.add(forceField) ) the force is equal to what I want.
But I want to apply the force on the cube and not on the tool (I tried using ODEobject->addExternalForce(forceField) ) and when I lift the cube with the tool, the force I feel is something like 3 times higher, but I don't find constant relations between them.
how can I apply the force I want on the cube?