Skip to content

Autoconnect parameter #1478

@daBaret

Description

@daBaret

Feature summary

When the dashboard_client is started, it will try to automatically connect to the UR robot. If the robot is not connected yet or off, it will fail and exit.
Would it be possible to let the user decide if autoconnect? I see that there are 2 services that can connect and disconnect the robot, so it would be possible to connect afterwards

The "problematic" line is this one:

Possible solution

Add a parameter to autoconnect and let the default true so that there is no behavior change:

node_->declare_parameter<bool>("autoconnect", true);
bool autoconnect = node_->get_parameter("autoconnect").as_bool();

if(autoconnect){
  connect();
}

If implemented, would be great to backport it to Jazzy.

Thank you for your work!

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