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

Bug in bldc_controller.cpp #1

Open
mzahana opened this issue Jan 2, 2022 · 1 comment
Open

Bug in bldc_controller.cpp #1

mzahana opened this issue Jan 2, 2022 · 1 comment

Comments

@mzahana
Copy link

mzahana commented Jan 2, 2022

Greetings!

There is a bug in bldc_controller.cpp that prevents this driver from being used with multiple drivers, even under different namespaces using the <group> tag. The /bldc_driver_node/Command needs to change to bldc_driver_node/Command. Otherwise, multiple drivers will always receive the same motor command.

@Jatin1o1
Copy link

Jatin1o1 commented Jan 6, 2022

Greetings!

There is a bug in bldc_controller.cpp that prevents this driver from being used with multiple drivers, even under different namespaces using the <group> tag. The /bldc_driver_node/Command needs to change to bldc_driver_node/Command. Otherwise, multiple drivers will always receive the same motor command.

workaround

  1. make a rosparam "topic_name ", set parameter value from launch file, and then make a ros::subscriber to the value of that parameter.
  2. make another class within the same namespace and attach another motor to that.

2nd workaround is in my fork of the chip_bldc_driver.

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