ICube-Robotics / ethercat_driver_ros2

Hardware Interface for EtherCAT module integration with ros2_control
https://icube-robotics.github.io/ethercat_driver_ros2/
Apache License 2.0
125 stars 32 forks source link

Setting ModeOfOperation based on claimed interfaces #88

Open CaPlasberg opened 8 months ago

CaPlasberg commented 8 months ago

Hi, I'm currently using a setup with several drives using the generic CiA402 drive plugin. Each of these drives has an incremental encoder, so homing is an essential procedure during the startup of the robot. This rises two problems: a) I need to change the mode_of_operation while the ros2_ethercat_driver is already running and b) homing requires (at least on the Nanotec PD4-E I'm using) a rising edge of specific bits in the controlword. I can see two solutions:

mcbed commented 8 months ago

Hi, From my perspective, homing operations should be rather handled by a dedicated controller based on the use case, as there are many ways to do it (inside the drive, pure controller, hybrid). To do what you need, there are 2 options that do not require a dedicated controller :