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

Giving force mode parameters as arguments when calling startForceMode #208

Open
wants to merge 14 commits into
base: master
Choose a base branch
from

Conversation

URJala
Copy link
Collaborator

@URJala URJala commented Jul 3, 2024

No description provided.

examples/force_mode_example.cpp Show resolved Hide resolved
examples/force_mode_example.cpp Show resolved Hide resolved
examples/force_mode_example.cpp Outdated Show resolved Hide resolved
resources/external_control.urscript Show resolved Hide resolved
examples/force_mode_example.cpp Outdated Show resolved Hide resolved
include/ur_client_library/ur/ur_driver.h Show resolved Hide resolved
include/ur_client_library/ur/ur_driver.h Show resolved Hide resolved
resources/external_control.urscript Show resolved Hide resolved
src/ur/ur_driver.cpp Outdated Show resolved Hide resolved
src/ur/ur_driver.cpp Outdated Show resolved Hide resolved
examples/force_mode_example.cpp Outdated Show resolved Hide resolved
examples/force_mode_example.cpp Outdated Show resolved Hide resolved
Copy link
Collaborator

@fmauch fmauch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please change the exceptions to more specific types? This would be great!

src/ur/ur_driver.cpp Outdated Show resolved Hide resolved
src/ur/ur_driver.cpp Outdated Show resolved Hide resolved
src/ur/ur_driver.cpp Outdated Show resolved Hide resolved
src/ur/ur_driver.cpp Outdated Show resolved Hide resolved
src/ur/ur_driver.cpp Outdated Show resolved Hide resolved
src/ur/ur_driver.cpp Outdated Show resolved Hide resolved
Copy link
Collaborator

@fmauch fmauch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I Meant to request changes, not to approve...

Added them to the various checks for starting force mode.
I created IncompatibleRobotVersion instead of using VersionMismatch, as the VersionMismatch would not give enough information in my opinion.
@urfeex urfeex self-requested a review November 5, 2024 12:38
Copy link
Collaborator

@urfeex urfeex left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it would be best to use the full version information in the IncompatibleRobotVersion exception.

The proposed changes obviously require changes where the exception is raised.

include/ur_client_library/exceptions.h Outdated Show resolved Hide resolved
include/ur_client_library/exceptions.h Outdated Show resolved Hide resolved
URJala and others added 2 commits November 6, 2024 14:23
After further thought, I dont think the Incompatible version exception is appropriate for one of the exception calls, as the robot is not actually incompatible, the function just needs more information. The new exception conveys that, i think. I can't quite make my mind up about whether it should mention that this is due to the robot version, though, so I have left it out for now.
Copy link
Collaborator

@urfeex urfeex left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is looking good now. Thank you @URJala

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants