This invention discloses an
EtherCAT-DDS communication bridging method between a host computer and a main control board of a quadruped
robot, relating to the field of
robot control technology. The method includes loading a parameterized configuration file on the host computer,
parsing EtherCAT communication parameters and joint transmission parameters, and generating a communication configuration structure. Based on this structure, the
EtherCAT master station is initialized, master-slave PDO mapping and DC distributed
clock synchronization are completed, a high real-time
communication link is established, the host computer subscribes to DDS joint control commands and performs direction and zero-position positive compensation, generates
control data adapted to EtherCAT and sends it to the main control board, collects the first joint state data of the motor-adapted coordinate
system, performs inverse compensation to generate the second joint state data adapted to DDS and sends it back, thus realizing
bidirectional communication bridging. This invention can improve communication real-time performance and
determinism, support parameterized
adaptation for multiple
robot models, and eliminate coordinate transformation errors.