Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Urscript interface #721

Merged
merged 11 commits into from
Jul 12, 2023
Merged

Conversation

fmauch
Copy link
Collaborator

@fmauch fmauch commented Jun 20, 2023

This PR adds a bare URScript interface using the ur_client_library. This should implement #387 and #251.

In this first version I did a 1to1 sending of the script code towards the robot. If the script code contains an error, it will simply not get executed.

This could get extended in the future, but that should be an easy non-intrusive extension that gets the job done in a lot of situations.

@fmauch fmauch added enhancement New feature or request backport-humble labels Jun 20, 2023
@fmauch fmauch added this to the ROS1 feature parity milestone Jun 20, 2023
@fmauch fmauch linked an issue Jun 20, 2023 that may be closed by this pull request
@fmauch fmauch mentioned this pull request Jun 20, 2023
@urrsk
Copy link
Member

urrsk commented Jun 22, 2023

@fmauch Great work.

  • Could we add a simple test as well?

@fmauch
Copy link
Collaborator Author

fmauch commented Jun 23, 2023

@urrsk I've added an integration test for the script interface.

@fmauch
Copy link
Collaborator Author

fmauch commented Jun 24, 2023

OK, those tests seem not to be reliable. I'll have to do some more work.

@fmauch fmauch force-pushed the urscript_interface branch 2 times, most recently from 82a7e2b to 6221fb4 Compare June 28, 2023 08:27
@RobertWilbrandt RobertWilbrandt merged commit 7ee47bd into UniversalRobots:main Jul 12, 2023
11 checks passed
mergify bot pushed a commit that referenced this pull request Jul 12, 2023
* Add a urscript interface node

* Add urscript_interface to standard launchfile

* Added documentation for urscript_interface

* Add a notice about incorrect script code

* Add test for urscript interface

* Move tests to one single tests

This should avoid that different tests run in parallel

* Wait for IO controller before checking IOs

* Write an initial textmessage when connecting the urscript_interface

* Wait for controller_manager services longer

* Make sure we have a clean robot state without any program running once we enter our test

similar to how we did it on the robot_driver test

* Remove unneeded Destructor definition

(cherry picked from commit 7ee47bd)

# Conflicts:
#	ur_robot_driver/doc/usage.rst
@fmauch fmauch deleted the urscript_interface branch July 12, 2023 18:26
fmauch added a commit that referenced this pull request Jul 21, 2023
* Add a urscript interface node

* Add urscript_interface to standard launchfile

* Added documentation for urscript_interface

* Add a notice about incorrect script code

* Add test for urscript interface

* Move tests to one single tests

This should avoid that different tests run in parallel

* Wait for IO controller before checking IOs

* Write an initial textmessage when connecting the urscript_interface

* Wait for controller_manager services longer

* Make sure we have a clean robot state without any program running once we enter our test

similar to how we did it on the robot_driver test

* Remove unneeded Destructor definition

(cherry picked from commit 7ee47bd)
fmauch added a commit that referenced this pull request Jul 21, 2023
* Add a urscript interface node

* Add urscript_interface to standard launchfile

* Added documentation for urscript_interface

* Add a notice about incorrect script code

* Add test for urscript interface

* Move tests to one single tests

This should avoid that different tests run in parallel

* Wait for IO controller before checking IOs

* Write an initial textmessage when connecting the urscript_interface

* Wait for controller_manager services longer

* Make sure we have a clean robot state without any program running once we enter our test

similar to how we did it on the robot_driver test

* Remove unneeded Destructor definition

(cherry picked from commit 7ee47bd)

Co-authored-by: Felix Exner (fexner) <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-humble enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for send custom script commands to robot
3 participants