Closed kochigami closed 9 years ago
Sorry for writing issue in a haste. Now, I have looked into virtual_force_publisher.cpp and reviewed robotics class a little.
I understand I can use psuedo jacobian transposation only if link dof is more than six. If link dof is less than six ( three translation and three rotation), endeffector dof is limited to less than six, but I can't find any calculation about this stuation.
Maybe I can change the strategy. What I really need is displaying direction of changing torque. I just focus on shoulder yaw and roll. I gather a lot of data about the direction (though I'm wondering how to do that) and the ratio of shoulder roll torque and shoulder yaw torque. Using Bayesian expectation, I can gain the expected direction. Without using rviz, maybe I can display an arrow in IRT simulator.
I looked again virtual_force_publisher.cpp and calculated the equations through the book about robot control.
First, I wondered that the calculation of jac_t_pseudo_inv
is wrong and why there is no conditional branch about the comparison of the number of joint dof and end effector dof.
However, they were just my misunderstanding.
Now I think this program can be used in all joint and end effector dof, but about pepper, both arrows are unstable even though we kept pulling pepper's arm for a long time.
Thank you very much for your help!!! :)
後ほど、トルク値の求め方(変換)が適切ではないからではないか、とご指摘いただきました。 確かに、位置のずれをそのままトルクとして使ってしまっていました。申し訳ございません。 もう少しロボティクスを復習して、また試そうと思います。
We want to display an arrow which shows a torque 3D direction indicating the largest torque change among pepper's joints, so we try using virtual_force_publisher.launch. However, the result seems unstable. (Red and yellow arrows oscillate.) We guess that is because the length of joint tree is five (ex: I mean the length of joint A -> joint B-> joint C is three), which is less than six.
How does this launch file calculate the result? Can we add an additional joint and make the length of joint tree six or more?
or Is there a good way to show virtual force direction focused on one joint?
We rewrote virtual_force_publisher.launch as follows:
After we executed
roslaunch virtual_force_publisher virtual_force_publisher.launch
, we found the length of joint tree is five like this.Thank you for your help !!