-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Need clear information about joint states #85
Comments
Hi, I'm Jin. if you want to read the effort, you need to do something.
After that you make use of "torque_to_current_value_ratio" in framework. Regards, |
I am done with this, here an example reading
My question, what is unit in effort value? Actually, I want to read "electric current" data not "torque" data |
Hi, There are two ways to obtain it.
Regards, |
Are you sure about this?
Check file XM430-W350.device
Then check dynamixel.cpp double Dynamixel::convertValue2Torque(int16_t value)
{
return (double) value / torque_to_current_value_ratio_;
} In function above you scale the "value" to "torque". "Value" in range 0-1193. So "torque" is equal to
From the datasheet, I got scaling unit for current = 2.69 mA So, if I want to get "current" then I have to multiply "value" with "current_unit" right?
Is my equation above correct? |
HI, I'm sorry about it. you right. You find a way like below. value = torque * torque_to_current_value_ratio That is great. I'll change my comment as soon as possible. Regards. |
I use Darwin OP3 robot which uses XM430-W350 Dynamixel servo. I want to read current data in Ampere using ROBOTIS-Framework.
As I know, I can subscribe present joint states in topic
/robotis/present_joint_states
This topic publishes position, velocity, and effort. Is the effort contains value of joint torque? Because the servo motor doesn't have torque sensor, or it is just approximation?
In devices folder, there is XM430-W350.device that lists all information of the motor. I found a scaling factor
torque_to_current_value_ratio = 149.795386991
Where this value comes from?
How can I convert effort value in joint states to current (in Ampere)?
The text was updated successfully, but these errors were encountered: