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

Unit of the position data #14

Open
likemountain opened this issue Mar 19, 2022 · 4 comments
Open

Unit of the position data #14

likemountain opened this issue Mar 19, 2022 · 4 comments

Comments

@likemountain
Copy link

Hello,

My motor's CPR (count per revolution) is set to 4000. However, when I send position command 4000, it rotates more than 7 revolutions. What is the unit of the data I am sending through the topic, joint0_position_controller/commands?

Thank you

@borongyuan
Copy link
Member

Hi,

We are using different units, adheres to REP-103. Joint position is expressed in rads rather than turns.

Thanks

@likemountain
Copy link
Author

likemountain commented Mar 21, 2022

Ok, now I figured it out. I also had to multiply my gear ratio to the position and velocity commands in odrive_hardware_interface.cpp. Thank you so much!

@borongyuan
Copy link
Member

It is recommended that gear transmission should be handled by transmission interface. That is not in the implementation of this hardware interface. The purpose the ros_control architecture is to allow developers to focus on the control of the joints, without considering the hardware implementation of joints. So the concepts of transmission and actuator are abstracted.
You can find an introduction to the architecture here.

@sharkbonebroth
Copy link

It is recommended that gear transmission should be handled by transmission interface. That is not in the implementation of this hardware interface. The purpose the ros_control architecture is to allow developers to focus on the control of the joints, without considering the hardware implementation of joints. So the concepts of transmission and actuator are abstracted. You can find an introduction to the architecture here.

Hi, Do you by any chance have a sample code that shows the implementation of odrive_ros2_controls with a transmission interface? Thank you in advance!

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

3 participants