CommonplaceRobotics / iRC_ROS

ROS2 packages for the igus Robot Control
Apache License 2.0
15 stars 7 forks source link

Startup procedure fails to reset error state #37

Closed cpr-fer closed 1 year ago

cpr-fer commented 1 year ago

Sometimes the startup procedure fails to reset all errors, which then requires multiple attemps or even a power cycle. Instead the activate method might block until the devices errors are all gone and maybe resend the commands a few times if its fails. If that does not succeed the hardware interface should go into the finalized state. This change wil require reading from the CAN bus before the read() and write() loop of the hardware interface are ready. As such a temporary read() thread might be spun up for the duration of the activate method. This change is also required for #1 .