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

Publish Wheel Velocity to Hardware in DiffDriveController [Question] #612

Open
Doctor-N0 opened this issue Jan 12, 2023 · 0 comments
Open

Comments

@Doctor-N0
Copy link

Doctor-N0 commented Jan 12, 2023

I would like to send the desired speeds of the left and right wheels calculated in the DiffDriveController to my PLC via the OPC-UA protocol. In the diff_drive_controller.cpp in line 802 this variable is assigned to controller_state_pub_.

controller_state_pub_->msg_.desired.velocities[i + wheel_joints_size_] = vel_right_desired;

Therefore, I would like to ask what is the recommended approach to send this variable to the OPC-UA node? According to the documentation only the Odometry is published, and not the wheels speed, or is it? Is there a way to publish this variable so that the OPC Node can access it? Or should I import the code of the OPC-UA node directly into the controller?

Thanks a lot for your answer!

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

1 participant