Skip to content

Configurable reconnection timeout and attempts for RTDE client #253

@domire8

Description

@domire8

Feature summary

Short introduction to the feature and why it should be implemented
The current reconnection timeout and attempts for RTDE client objects are currently hardcoded to 10s and 10 attempts here. It would be nice to be able to configure these.

Followed by a longer description
The consequence of the current implementation is that the init of RTDE clients cannot be terminated earlier than 100 seconds in the worst case (10 attempts with 10s sleep in between). Since the timeout really is hardcoded and the number of attempts is a const variable, there is no way to configure this behavior. It would be neat to be at least able to set the number of attempts, potentially using ifdef / ifndef directives, or constructor arguments.

Additional detail: In the current implementation, the thread even sleeps after the last attempt has been made, I believe it should only sleep if the number of attempts hasn't reached the max yet.

Happy to help out if desired.

Related issues

Tasks

To complete this issue involves

  • Implement the feature
  • Make documentation
  • Make Unit test
  • Make example
  • Test on real hardware

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions