I am coming back again with my torque sensor... Just to quickly answer
to Daniele (about ODE and haptics), I am also using ODE in a haptic
research application ; my goal is to implement virtual worlds and
simulate the physics in order to compute a torque sensor on each joint.
I didn't succeed until now... but I am still trying.
So, here is my problem : I am using a motor, and I control it using a
torque. So in the dJointSetHingeParam function, I am passing a high
velocity and the torque that I want to reach. As far as I understood, I
think that when I look into the JointFeedback structure, what I get is
the torque that has really been applied by the motor. This is an
information that I need, but I would also need the reaction torques,
when I have a contact for instance. I already saw that I can get the
force that comes from a contact, on each joint, but I would like to get
those reaction torques... They should be computed somewhere...
I actually found a way to get them : if I put 0 as a desired velocity
(into dJointSetHingeParam), and a very high torque into dParamFmax, then
the system doesn't move, and if something collides with my system, I get
exactly the reaction torque (multiply by -1 because the system is
balanced, so my motors are compensating the reaction torque...) ; but
this is not a solution, it was just to test that the computation is done...
Thanks for your help,
Elvina
Contact forces and torques will come from contact joints; so add a
feedback to them too.
--
Daniel K. O.
"The only way to succeed is to build success yourself"
Daniel K. O. wrote:
> Elvina Motard escreveu:
>
>> velocity and the torque that I want to reach. As far as I understood, I
>> think that when I look into the JointFeedback structure, what I get is
>> the torque that has really been applied by the motor. This is an
>> information that I need, but I would also need the reaction torques,
>> when I have a contact for instance.
>>
>
> Contact forces and torques will come from contact joints; so add a
> feedback to them too.
>
>
>
>
>
--
Elvina Motard
Robotics Engineer
Space Applications Services
Leuvensesteenweg 325, B-1932 Zaventem, Belgium
Tel: +32 2 721 54 84 Fax: +32 2 721 54 44
URL: http://www.spaceapplications.com
I thought this could save some headache from messing with DH params.
-Gazi
I actually downloaded the SVN version of ODE and looked a bit into it.
There are lots of details I don't understand, but I think it is located
into step.cpp, in the function dInternalStepIsland_x2. Is there anybody
who participated to the development of this function that could help me,
finding out the information of how much torque is acting on each joint
as a result of a contact on a joint chain ? I don't need you to modify
ODE so that I can access this information, I would just like to know
where this information is and then I would be able to make my own
version of ODE.
Thank you,
Elvina
Thank you for your help regarding the torque torque sensor computing.
Finally, I gave up looking through ODE code to find a solution (I don't
have enough time to understand it all...) and I did like Gazi said, i.e.
I didn't compute the jacobian using the DH parameters, but I build it
using the hinges axis and the distance between the anchor and the
contact point. It is working well, and is fast to compute, so thank you
both !
Elvina