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

size of joints of PR2GripperTransmission on hydro #324

Open
garaemon opened this issue Sep 30, 2014 · 8 comments
Open

size of joints of PR2GripperTransmission on hydro #324

garaemon opened this issue Sep 30, 2014 · 8 comments

Comments

@garaemon
Copy link

I have a following error when running pr2_ethercat on hydro:

[ERROR] [1412061906.096726706]: Failed to initialize transmission
[FATAL] [1412061906.210650710]: ASSERTION FAILED
        file = /home/applications/ros/hydro/src/pr2_mechanism/pr2_mechanism_model/src/pr2_gripper_transmission
.cpp
        line = 545
        cond = js.size() == 1 + passive_joints_.size() + 1

I'm using a robot model based on pr2_1.11.4.urdf.xacro and js.size and passive_joints_.size are 0.

Is something wrong?

cc: @k-okada

@garaemon
Copy link
Author

When I use robot model based on pr2_1.10.3.urdf, js.size() is 7 and passive_joints_.size() is 4.

@garaemon
Copy link
Author

we needed to change pr2.urdf.xacro as following:

$  diff robot_calibrated_2014_09_29_23_23.xml robot_calibrated_2014_09_29_23_23.xml.org 
1416,1419d1415
<     <rightActuator mechanicalReduction="60.1714285714" name="r_wrist_r_motor"/>
<     <leftActuator mechanicalReduction="60.1714285714" name="r_wrist_l_motor"/>
<     <flexJoint mechanicalReduction="-1.0" name="r_wrist_flex_joint"/>
<     <rollJoint mechanicalReduction="1.0" name="r_wrist_roll_joint"/>
1656,1662d1651
<     <gap_joint L0="0.0375528" a="0.0683698" b="0.0433849" gear_ratio="40.095" h="0.0" mechanical_reduction="1.0" name="r_gripper_joint" phi0="0.518518122146" r="0.0915" screw_reduction="0.004" t0="-0.0001914" theta0="0.0628824676201"/>
<     <use_simulated_gripper_joint/>
<     <passive_joint name="r_gripper_l_finger_joint"/>
<     <passive_joint name="r_gripper_r_finger_joint"/>
<     <passive_joint name="r_gripper_r_finger_tip_joint"/>
<     <passive_joint name="r_gripper_l_finger_tip_joint"/>
<     <simulated_actuated_joint name="r_gripper_motor_screw_joint" passive_actuated_joint="r_gripper_motor_slider_joint" simulated_reduction="3141.6"/>
1968,1971d1956
<     <rightActuator mechanicalReduction="60.1714285714" name="l_wrist_r_motor"/>
<     <leftActuator mechanicalReduction="60.1714285714" name="l_wrist_l_motor"/>
<     <flexJoint mechanicalReduction="-1.0" name="l_wrist_flex_joint"/>
<     <rollJoint mechanicalReduction="1.0" name="l_wrist_roll_joint"/>
2208,2214d2192
<     <gap_joint L0="0.0375528" a="0.0683698" b="0.0433849" gear_ratio="40.095" h="0.0" mechanical_reduction="1.0" name="l_gripper_joint" phi0="0.518518122146" r="0.0915" screw_reduction="0.004" t0="-0.0001914" theta0="0.0628824676201"/>
<     <use_simulated_gripper_joint/>
<     <passive_joint name="l_gripper_l_finger_joint"/>
<     <passive_joint name="l_gripper_r_finger_joint"/>
<     <passive_joint name="l_gripper_r_finger_tip_joint"/>
<     <passive_joint name="l_gripper_l_finger_tip_joint"/>
<     <simulated_actuated_joint name="l_gripper_motor_screw_joint" passive_actuated_joint="l_gripper_motor_slider_joint" simulated_reduction="3141.6"/>

@TheDash
Copy link
Contributor

TheDash commented Sep 30, 2014

What was the issue? Those lines were added?

@garaemon
Copy link
Author

In order to run pr2_ethercat with the latest pr2.urdf, I needed to add
those lines to the urdf file.
However I don't know whether I should fix urdf or pr2_mechanism_model.

Is there anybody who know why these lines are removed from urdf file?

2014年9月30日火曜日、Devon [email protected]さんは書きました:

What was the issue? Those lines were added?


Reply to this email directly or view it on GitHub
#324 (comment).

from iPhone

@garaemon
Copy link
Author

Any update?

Is there anybody who tried pr2 calibration process on hydro?

@garaemon
Copy link
Author

I addressed this critical issue.
pr2 calibration process is:

  1. read robot_description from parameter server
  2. collect data
  3. save them into a bag file
  4. conduct calibration from the bag file
  5. dump the calibration parameters into urdf files.

And current urdf_parser_py ignores the tags described in above comment and
the tags will be disappeared between 4. and 5.

We need to fix urdf or mechanism controller in order to achieve pr2 calibration on hydro.

@garaemon
Copy link
Author

This pull request can solve this problem, however it is still rejected.

@TheDash
Copy link
Contributor

TheDash commented Oct 30, 2014

Sorry, it seems the emails have been getting marked as spam for some reason. I'll look over this and get back to you

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

2 participants