Generic transmission support in EthercatDriver - #248
Draft
mcbed wants to merge 7 commits into
Draft
Conversation
mcbed
marked this pull request as draft
August 19, 2026 16:58
mcbed
force-pushed
the
feat/transmissions
branch
from
August 24, 2026 15:35
c4fde2c to
53e77aa
Compare
No behavior change; makes the sizing step callable on its own.
Adds the pluginlib transmission loader, the per-transmission runtime state, and method declarations. No definitions yet.
Loads each URDF <transmission> via pluginlib and builds a staging buffer per joint/actuator role sized to the union of that joint's declared state and command interfaces, so any interface name a project needs flows through automatically without touching this driver - only the transmission plugin needs to know about it. Not wired into on_init() yet.
Read direction copies actuator hardware state through the transmission into transmission-only joints. Write direction copies transmission-only joint commands through the transmission into actuator commands, holding an actuator's previous command for any interface the plugin didn't project rather than overwriting it with NaN, and warning once per transmission if that drops a real command. Not called from read()/write() yet.
on_init() loads declared transmissions before wiring EC modules; read()/write() propagate through them each cycle.
Covers reduction on read/write, an actuator missing an <ec_module>, an unresolvable transmission joint, an unknown plugin type, and an actuator command interface the transmission plugin doesn't recognize (holds its previous value). Also fixes two uncrustify brace-style spots in ethercat_driver.cpp.
mcbed
force-pushed
the
feat/transmissions
branch
from
August 31, 2026 14:28
53e77aa to
3428e68
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
loadTransmissions()/propagateTransmissionStates()/applyTransmissionCommands()using the standardtransmission_interface::TransmissionLoaderpluginlib pattern — config-only,To be merged after PR #241