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

Modify turtlebot_motor_driver #263

Open
Valeria258 opened this issue Feb 13, 2021 · 4 comments
Open

Modify turtlebot_motor_driver #263

Valeria258 opened this issue Feb 13, 2021 · 4 comments

Comments

@Valeria258
Copy link

I'm triying to modify this file https://github.com/ROBOTIS-GIT/OpenCR/blob/master/arduino/opencr_arduino/opencr/libraries/turtlebot3/src/turtlebot3/turtlebot3_motor_driver.cpp in order to add a new function to read current on the dynamixel servomotors but when I compile it i got an error saying that my function doesn't exist. It seems that is not using my modified files. Which files should I modify to solve this problem?

@ROBOTIS-Will
Copy link
Contributor

ROBOTIS-Will commented Feb 15, 2021

Hi @Valeria258,
Did you append your custom function to the header file where defines the Turtlebot3MotorDriver class?

@TimothyHo584
Copy link

Can any one know that what is "VELOCITY_CONSTANT_VALUE" in turtlebot3_motor_driver.h come from?
I really confuse about the value 0.229 and 0.10472 come from.
Because I change the motor to MX-64, do I need to change it?

@ROBOTIS-Will
Copy link
Contributor

The constant 0.229 came from the Velocity unit of DYNAMIXEL
0.10472 came from the calculation of angular velocity = 2 * pi / 60 = 0.10472
If you are going to use MX-64(2.0), the firmware that supports DYNAMIXEL Protocol 2.0, you don't need to modify these constants.

@TimothyHo584
Copy link

The constant 0.229 came from the Velocity unit of DYNAMIXEL
0.10472 came from the calculation of angular velocity = 2 * pi / 60 = 0.10472
If you are going to use MX-64(2.0), the firmware that supports DYNAMIXEL Protocol 2.0, you don't need to modify these constants.

Thanks a lot!!I finally know these two constant means.

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