-
Notifications
You must be signed in to change notification settings - Fork 51
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
Mismatch for axis 3 in R-1000iA #17
Comments
With such a difference I would expect the robot in RViz to be in a radically different pose compared to the real robot. Have you observed that as well? |
This is caused by the J2-J3 linkage Fanucs have. If I do |
Some controllers / software versions allow you to enable a display item that shows you the J2-J3 linkage value (or something, can't remember what it is called exactly). That should show you the difference as well. |
good :) I tend to test these things quite rigorously, but it's always possible I made a mistake, obviously. A |
Yes I have J2/J3 interaction showing the right value (the one displayed in |
Closing then as a |
It works fine with I realized that when |
How are you 'executing the recorded poses'? Trajectories going through the |
The node parsing the YAML file is giving that to an other node executing the trajectory for me 😄 I just made the small calculation (addition) to the joint values and everything works well now 👍 |
I'm not entirely sure how the |
At the end you get a .YAML file that looks like that: ---
reference_frame: base
scenes:
-
scene_id: 0
trigger: ROS_ROBOT_JOINT_VALUES_ACTION_TRIGGER
trig_action_server: rosRobotSceneTrigger_joint_values
joint_values:
- 0.27438
- 0.54669
- -0.03522
- 1.28528
- -1.76496
- -0.54365
observations:
-
camera: sls_2
target: CircleGrid10x10
roi_x_min: 0
roi_x_max: 1280
roi_y_min: 0
roi_y_max: 960
cost_type: LinkCameraCircleTargetReprjErrorPK
-
scene_id: 1
trigger: ROS_ROBOT_JOINT_VALUES_ACTION_TRIGGER
trig_action_server: rosRobotSceneTrigger_joint_values
joint_values:
- 0.39575
- 0.58015
- -0.05061
- 1.44278
- -1.90017
- -0.61905
observations:
-
camera: sls_2
target: CircleGrid10x10
roi_x_min: 0
roi_x_max: 1280
roi_y_min: 0
roi_y_max: 960
cost_type: LinkCameraCircleTargetReprjErrorPK
-
scene_id: 2
trigger: ROS_ROBOT_JOINT_VALUES_ACTION_TRIGGER
trig_action_server: rosRobotSceneTrigger_joint_values
joint_values:
- 0.26674
- 0.41834
- 0.41834
- 1.29968
- -1.67077
- -0.61933
observations:
-
camera: sls_2
target: CircleGrid10x10
roi_x_min: 0
roi_x_max: 1280
roi_y_min: 0
roi_y_max: 960
cost_type: LinkCameraCircleTargetReprjErrorPK
-
scene_id: 3
trigger: ROS_ROBOT_JOINT_VALUES_ACTION_TRIGGER
trig_action_server: rosRobotSceneTrigger_joint_values
joint_values:
- 0.27491
- 0.30231
- -0.30266
- 0.94138
- -2.06026
- -0.95086
observations:
-
camera: sls_2
target: CircleGrid10x10
roi_x_min: 0
roi_x_max: 1280
roi_y_min: 0
roi_y_max: 960
cost_type: LinkCameraCircleTargetReprjErrorPK
-
scene_id: 4
trigger: ROS_ROBOT_JOINT_VALUES_ACTION_TRIGGER
trig_action_server: rosRobotSceneTrigger_joint_values
joint_values:
- 0.04786
- 0.16993
- -0.61908
- 0.74808
- -1.47835
- -1.03552
observations:
-
camera: sls_2
target: CircleGrid10x10
roi_x_min: 0
roi_x_max: 1280
roi_y_min: 0
roi_y_max: 960
cost_type: LinkCameraCircleTargetReprjErrorPK
-
scene_id: 5
trigger: ROS_ROBOT_JOINT_VALUES_ACTION_TRIGGER
trig_action_server: rosRobotSceneTrigger_joint_values
joint_values:
- 0.14930
- 0.53925
- -0.02988
- 1.26840
- -1.18279
- -0.38326
observations:
-
camera: sls_2
target: CircleGrid10x10
roi_x_min: 0
roi_x_max: 1280
roi_y_min: 0
roi_y_max: 960
cost_type: LinkCameraCircleTargetReprjErrorPK
-
scene_id: 6
trigger: ROS_ROBOT_JOINT_VALUES_ACTION_TRIGGER
trig_action_server: rosRobotSceneTrigger_joint_values
joint_values:
- 0.31690
- 0.58545
- -0.02899
- 1.75386
- -0.49604
- -0.38491
observations:
-
camera: sls_2
target: CircleGrid10x10
roi_x_min: 0
roi_x_max: 1280
roi_y_min: 0
roi_y_max: 960
cost_type: LinkCameraCircleTargetReprjErrorPK
-
scene_id: 7
trigger: ROS_ROBOT_JOINT_VALUES_ACTION_TRIGGER
trig_action_server: rosRobotSceneTrigger_joint_values
joint_values:
- 0.42605
- 0.15085
- -0.55842
- 2.41646
- -0.87343
- -1.02646
observations:
-
camera: sls_2
target: CircleGrid10x10
roi_x_min: 0
roi_x_max: 1280
roi_y_min: 0
roi_y_max: 960
cost_type: LinkCameraCircleTargetReprjErrorPK
-
scene_id: 8
trigger: ROS_ROBOT_JOINT_VALUES_ACTION_TRIGGER
trig_action_server: rosRobotSceneTrigger_joint_values
joint_values:
- 0.31533
- 0.22557
- -0.4334
- 3.10028
- -0.47122
- -1.61239
observations:
-
camera: sls_2
target: CircleGrid10x10
roi_x_min: 0
roi_x_max: 1280
roi_y_min: 0
roi_y_max: 960
cost_type: LinkCameraCircleTargetReprjErrorPK
optimization_parameters: xx I wanted to edit some poses because I was too close to the target. I don't know if that means something's wrong, tell me if my explanation is not clear enough! |
Ah now I understand you. I think this is unfortunately something that isn't really 'fixable': the Fanuc TP will show you the angle J3 is making including the J2/J3 interaction. ROS however will always want the angle J3 is making wrt J2. This cannot include the J2/J3 interaction, as then it's essentially the angle J3 makes wrt the As you found out, converting joint angles you get from the TP into radians then doesn't work, or at least not without taking the J2/J3 interaction into account.
I may have misunderstood your comment earlier: I thought you compensated for J2-J3 in your code. I now believe you did the math and then adjusted the values in the |
Ok then I'll do with it, it's no big deal, the big red button on the teach is not useless.. 😉 Yes I just fixed the |
I think I'll add an entry to the Troubleshooting page about this. Thanks for bringing this (ie: the non-obviousness of it) to my attention. |
Related ROS Answers question btw: Strange behaviour from joint_trajectory_action to ABB robot. |
@VictorLamoine: bit late, but I've added an entry to the FAQ about J2/J3 interaction. See ros-industrial/fanuc#186. |
On the teach pendant:
Using
robot_state_visualize
(indigo-devel branch):-0.035214900970458984 rad
=-2.017 deg
The text was updated successfully, but these errors were encountered: