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

running the package in real gripper #2

Open
hoab02 opened this issue Nov 1, 2023 · 4 comments
Open

running the package in real gripper #2

hoab02 opened this issue Nov 1, 2023 · 4 comments

Comments

@hoab02
Copy link

hoab02 commented Nov 1, 2023

I cloned your package to test on my RG2-FT gripper, I can run the simulation but failed to control the real gripper, I checked out your moveit_config file and found kinematics.yaml and ros_controllers.yaml is empty, is that the reason? How can I run the package to control my gripper? Thanks.

@ian-chuang
Copy link
Owner

I defined the controllers for moveit here

Did you test whether you can control the gripper with the publisher-subscriber interface?

If you run this:
roslaunch onrobot_rg2ft_control onrobot_rg2ft_control.launch ip:=<gripper_ip defaults to 192.168.1.1> port:=<port defaults to 502>

You should see two topics, one that you publish RG2FTCommand msg, and another that you can read RG2FTState msg.

Try rostopic echo and rostopic pub to see if you can control the gripper that way.

Next see if you can use the action server. All it does is publish and subscribe to the topics.

Then try moveit, which just interfaces the action server.

@MynhLoveBunCha
Copy link

I defined the controllers for moveit here

Did you test whether you can control the gripper with the publisher-subscriber interface?

If you run this: roslaunch onrobot_rg2ft_control onrobot_rg2ft_control.launch ip:=<gripper_ip defaults to 192.168.1.1> port:=<port defaults to 502>

You should see two topics, one that you publish RG2FTCommand msg, and another that you can read RG2FTState msg.

Try rostopic echo and rostopic pub to see if you can control the gripper that way.

Next see if you can use the action server. All it does is publish and subscribe to the topics.

Then try moveit, which just interfaces the action server.

Screenshot from 2023-11-01 11-10-45
After I tried to run your command which controlled the gripper with pub-sub interface, I encountered this error. I could still ping the gripper using this command "ping 192.168.1.1"
Screenshot from 2023-11-01 11-15-24
Therefore, I suspected that my port was incorrect. How do I find the correct port? Thank you!

@ian-chuang
Copy link
Owner

ian-chuang commented Nov 1, 2023

The port should be fixed to 502 here:

image

Sorry it's hard to debug since I've only tested this on my gripper. For my setup, I have a network switch that connects the PC, OnRobot compute box, and UR5e. Then the compute box has a wire that connects directly to the port on the gripper itself.

The latest version of the repo should work though since I've been using it for my setup.

I'll test it again in the lab tomorrow and let you know

@ian-chuang
Copy link
Owner

Hello,

Did you two get it working? Sorry I forgot about our conversation. I just tested this repo again today and it works for me.

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

No branches or pull requests

3 participants