-
Notifications
You must be signed in to change notification settings - Fork 47
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
Add robotiq f2 140 support #18
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't have my computer to test but the changes look good. Thanks for adding the 2f_140!
@@ -41,7 +41,7 @@ def generate_launch_description(): | |||
pkg_share = launch_ros.substitutions.FindPackageShare( | |||
package="robotiq_description" | |||
).find("robotiq_description") | |||
default_model_path = os.path.join(pkg_share, "urdf", "robotiq_gripper.urdf.xacro") | |||
default_model_path = os.path.join(pkg_share, "urdf", "robotiq_2f_85.xacro") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be robotiq_2f_85.urdf.xacro
@@ -33,7 +33,7 @@ | |||
</visual> | |||
<collision> | |||
<geometry> | |||
<mesh filename="file://$(find robotiq_description)/meshes/collision/robotiq_base.stl" /> | |||
<mesh filename="file://$(find robotiq_description)/meshes/collision/2f_85/robotiq_base.stl" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You missed adding 2f_85
to all of the visual tags.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is this file used for?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry I forgot about this PR! I don't have a way to test with hardware but the view_gripper
launch files work.
Can you change the 2f_140 xacro's to mach how the 2f85 was done?
That is robotiq_2f_85.urdf.xacro
calls the macro and attached to a world link. The macro.urdf.xacro
includes ros2_control and builds the gripper URDF (feel free to keep that xacro only file).
I'm just waiting for this request to be merged. |
I'll fix the conflicts and try to get this working this week |
…os2_robotiq_gripper#18), cleaned up old files
thank you by adding
to a new file robotiq_2f_140_macro.urdf.xacro |
Codecov Report
@@ Coverage Diff @@
## main #18 +/- ##
=====================================
Coverage 0.00% 0.00%
=====================================
Files 5 5
Lines 352 352
=====================================
Misses 352 352
Flags with carried forward coverage won't be shown. Click here to find out more. 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have verified this works in Gazebo and with the Kinova URDF (I will open a PR after we get this merged).
One issue that I have is that the 2f-85 in this repo has the fingers moving along the X-axis of the gripper base...
and the 2f-140 has the fingers moving along they Y-axis so it requires the user add an additional rotation when switching between the two.
To properly fix this/make them match we would need to rotate some of the meshes and then fix all the joints. Should we block the PR until I have time to fix the rotation? I could also add a dummy link to the base of the gripper and apply the rotation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay so I added a dummy link to the base of the 2f-140 gripper to match the 2f-85. I will open up an issue to document the extra link and if someone has time they can rotate the meshes and delete it so they match.
Copied from [email protected]:ros-industrial/robotiq.git with small modifications to have the same structure as the codebase here
TODOs: