-
Notifications
You must be signed in to change notification settings - Fork 22
Help! I can't get jog_arm to work #39
Comments
That's a good idea but it will take me a while to test on a stock UR5. Good news is, I'm 99% sure it will work for you. It's been used on very old and very new models. The only changes should be in ./config/jog_settings.yaml, and it's probably just a matter of removing the prefixes (delete "right_"). Also, You could also display the tf frames in RViz. I'm not sure what "right_ur5_base_link" should change to... Maybe "base_link" or "ur5_base_link" move_group_name should be "manipulator" |
Thanks for your quick reply! I think I have it almost working, however I cant seem to figure out where to publish the JointTrajectory Messages to. Just for reference what I've done before is to run
as suggested at the bottom of the readme here https://github.com/ros-industrial/universal_robot My jog_settings.yaml currently contains
I cant see how I would use rostopic list to find out the topic name that I should publish to so that it gets subscribed my the right entity. |
OK, so you're simulating in Gazebo. Here's the config file I use for Gazebo simulation:
Some differences:
You'll probably see that it's a little jerky in Gazebo, and that's due to the slow ros_control action server. If you run it on a hardware robot, it should be completely smooth. |
Does |
Hi i'm trying to use your package with a UR3 but i have this error :
|
Hi @baba5000, Can you quickly check that you are on the 'kinetic' branch? If you are on the 'kinetic-urscript' branch, it would explain that error. |
Thank you, it was the problem ! So, it works well with Gazebo now but not with the real UR3. I obtain this when i use
With gazebo the topic 'arm_controller/command' appears but not here. I think I don't use the appropriate command_out_topic but I don't know what is the right topic to put. |
I don't see an obvious JointTrajectory message topic on that list. Can you go through and see if any of the message types are `JointTrajectory'? Like, If there isn't any JointTrajectory message, then you can use the kinetic-urscript branch on the hardware robot, and the kinetic branch for simulation. The only difference is kinetic-urscript sends strings instead of JointTrajectory msgs. Can I ask what UR driver you're using? Is it this ur_modern_driver package? Thanks! |
Hey there .. its been a while and I almost have things working now (or at least to me it looks like that ;)) What I did:
In the meantime I also got myself a spacemouse and this seems to emit the control messages correctly on the corresponding topics. However, the robot arm control only works to a degree, ie the arm shakes madly (in Gazebo) when I move the mouse. After mouse movement it is still roughly in the same position as before. Messages on the jog_arm output in this state report "Close to a singularity. Halting." while the UR5 gazebo stdout spams "Dropping first 2 trajectory point(s) out of 30, as they occur before the current time. First valid point will be reached in 0.005s" when there is spacemouse input. Now Im wondering whether or not Im using the correct command_frame and if my control messages might be asking for too large motions. Here is the output of rostopic list for reference:
|
@blubbi321 I can help a little. It does sound like you are very close.
Gazebo probably launches with the arm fully extended, right? All joint angles at 0. That's why you get this singularity warning. You can plan/execute a move in RViz to a better position and this warning should go away. In Gazebo, you'll always get this warning about points being dropped. No need to worry about it. |
@Obbart I think you are the first to try this on an E-series. 👍 It's suspicious on the rqt_plot that the jog_arm_server has connections to Does your command have a proper time stamp? Is it all zeros? If those suggestions ^ don't help, I would try debugging with a print statement at line ~1044 of jog_arm_server.cpp. In JogROSInterface::deltaCartesianCmdCB. Something like:
That will at least let you know it's receiving the message correctly. |
@AndyZe Thanks for your help - and the encouragement! Got it to work now on the UR5 :) (changed scale limits and the command_frame) |
I really don't know, every time I start jog_arm these connections appear on the graph, I suppose that is an unexpected behavior since I have not modified the package and I'm not using pick/place actions anywere.
|
Hello! So, after reading the entire discussion, I still set up the jog_arm to work with ur3 and ps4 joystick. That's what I'm doing:
It works fine, but first you need to move to a position away from the singularities. I move to the "up" (in Rviz->MotionPlanning->Planning->Query->Goal State->up.) position and then move down a little along the z axis. |
Hey there,
very glad I found your code. However, Im struggling to get it to run on the UR5 model available at [1]. Not sure whether its the right model at all though .. if so people seem to have renamed a lot of the frames. Anyways it would be nice if jog_arm supported that model :)
[1] http://wiki.ros.org/ur5_moveit_config
The text was updated successfully, but these errors were encountered: