Skip to content
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

In gazebo_motor_model.cpp , what is the unit for the motor_constant and where is the moment calculated? #1001

Open
mariam0amin opened this issue Sep 6, 2023 · 4 comments

Comments

@mariam0amin
Copy link

mariam0amin commented Sep 6, 2023

in this line of code -----> ignition::math::Vector3d drag_torque(0, 0, -turning_direction_ * force * moment_constant_);
is this the calculation for the moment? and if it is, how is it force* moment constant? does this mean moment constant unit is meters??
Thanks in advance

@mariam0amin mariam0amin changed the title gazebo_motor_model.cpp , what is the unit for the motor_constant and where is the moment calculated? In gazebo_motor_model.cpp , what is the unit for the motor_constant and where is the moment calculated? Sep 6, 2023
@JohnTGZ
Copy link

JohnTGZ commented Sep 7, 2023

Based on these notes which try to explain the gazebo parameters for the motor model, you might actually be right.

@mariam0amin
Copy link
Author

@JohnTGZ
Thank you so much,but it is also written that the motor_constant is in kg.m in this part of the paper
paper_motor calculation
however I thought it was in (N.sec^2/rad^2) on what I thought I understand and also based on these two issues:
5986
110
so how can the motor constant have this unit?

@JohnTGZ
Copy link

JohnTGZ commented Sep 11, 2023

The units of ω is [Time^-2], there is no radians involved

Motor constant is in (kg)(m).
Moment constant is in (m)

According to the code for motor constant and force:
Motor Constant = Thrust / (Angular_rate^2)
Units of motor constant = [Mass][Length][Time^2] / [Time^2] = [Mass][Length]

According to the code for moment constant and torque:
Moment Constant = (Torque about z axis) / (Thrust along z axis)
Units of Moment constant = [Mass][Length^2][Time^2] / [Mass][Length][Time^2] = [Length]

@mariam0amin
Copy link
Author

@JohnTGZ Thanks, I appreciate your help; but, do you know how I may obtain the motor constant in this case? I used to conduct an experimental analysis in which I measured the thrust and the rotor velocity in rpm or rad/sec that corresponded to this thrust. After fitting the data, I obtained the motor constant. However, now that you are saying that it is angular rate, how can I obtain the motor constant in that case? or simply that radians are dimensionless?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants