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

Support of 7 joints in the mk3 hand #253

Merged
merged 3 commits into from
Apr 27, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE devices PUBLIC "-//YARP//DTD yarprobotinterface 3.0//EN" "http://www.yarp.it/DTD/yarprobotinterfaceV3.0.dtd">


<device xmlns:xi="http://www.w3.org/2001/XInclude" name="left_hand7_calibrator" type="parametricCalibratorEth">
<xi:include href="../general.xml" />

<group name="GENERAL">
<param name="joints"> 7 </param> <!-- the number of joints of the robot part -->
<param name="deviceName"> Left_Hand7_Calibrator </param>
</group>


<group name="PARKING_SEQUENCE">
<param name= "numberOfSequences"> 1 </param>

<group name="SEQUENCE_0">
<param name="position"> 30.00 30.00 30.00 30.00 30.00 30.00 30.00 </param>
<param name="velocity"> 40.00 40.00 40.00 40.00 40.00 40.00 40.00 </param>
</group>
</group>


<group name="CALIBRATION">
<param name="calibrationType"> 12 12 12 12 12 12 12 </param>
<param name="calibration1"> 0 0 0 0 0 0 0 </param>
<param name="calibration2"> 0 0 0 0 0 0 0 </param>
<param name="calibration3"> 0 0 0 0 0 0 0 </param>
<param name="calibration4"> 0 0 0 0 0 0 0 </param>
<param name="calibration5"> 0 0 0 0 0 0 0 </param>
<param name="calibrationZero"> 0 0 0 0 0 0 0 </param>
<param name="calibrationDelta"> 0 0 0 0 0 0 0 </param>
<param name="startupPosition"> 30.0 30.0 30.0 30.0 30.0 30.0 30.0 </param>
<param name="startupVelocity"> 40.0 40.0 40.0 40.0 40.0 40.0 40.0 </param>
<param name="startupMaxPwm"> 0 0 0 0 0 0 0 </param>
<param name="startupPosThreshold"> 10 10 10 10 10 10 10 </param>
</group>

<param name="CALIB_ORDER"> (0 1 2 3 4 5 6) </param>

<action phase="startup" level="10" type="calibrate">
<param name="target">hv3_left_hand7_mc_wrapper</param>
</action>

<action phase="interrupt1" level="1" type="park">
<param name="target">hv3_left_hand7_mc_wrapper</param>
</action>

<action phase="interrupt3" level="1" type="abort" />

</device>


Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@
<param name="type"> eobrd_pmc </param>

<group name="PROTOCOL">
<param name="major"> 2 </param>
<param name="major"> 0 </param>
<param name="minor"> 0 </param>
</group>
<group name="FIRMWARE">
<param name="major"> 1 </param>
<param name="major"> 0 </param>
<param name="minor"> 0 </param>
<param name="build"> 0 </param>
</group>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE params PUBLIC "-//YARP//DTD yarprobotinterface 3.0//EN" "http://www.yarp.it/DTD/yarprobotinterfaceV3.0.dtd">

<params xmlns:xi="http://www.w3.org/2001/XInclude" robot="new_forarm" build="1">
<group name="GENERAL">
<param name="MotioncontrolVersion"> 6 </param>
<param name="Joints"> 7 </param>

<!-- joint number in sub-part 0 1 2 3 4 5 6 -->
<!-- joint name -->
<param name="AxisMap"> 0 1 2 3 4 5 6 </param>
<param name="AxisName"> "l_thumb_open" "l_index_open" "l_medium_open" "l_pinky_open" "l_thumb_metac" "l_thumb_rot" "l_index_adduc" </param>
<param name="AxisType"> "revolute" "revolute" "revolute" "revolute" "revolute" "revolute" "revolute" </param>
<param name="Encoder"> 182.044 182.044 182.044 182.044 182.044 182.044 182.044 </param>
<param name="fullscalePWM"> 3360 3360 3360 3360 3360 3360 3360 </param>
<param name="ampsToSensor"> 1000.0 1000.0 1000.0 1000.0 1000.0 1000.0 1000.0 </param>
<param name="Gearbox_M2J"> 159 159 159 159 159 159 159 </param>
<param name="Gearbox_E2J"> 1 1 1 1 1 1 1 </param>
<param name="useMotorSpeedFbk"> 0 0 0 0 0 0 0 </param>
<param name="MotorType"> "DC" "DC" "DC" "DC" "DC" "DC" "DC" </param>

<param name="Verbose"> 0 </param>
</group>

<group name="LIMITS">
<param name="hardwareJntPosMax"> 100 100 100 100 100 100 100 </param>
<param name="hardwareJntPosMin"> 0 0 0 0 0 0 0 </param>
<param name="rotorPosMin"> 0 0 0 0 0 0 0 </param>
<param name="rotorPosMax"> 0 0 0 0 0 0 0 </param>
</group>


<!-- marco.accame on 08apr2021
the COUPLING and JOINTSET_CFG sections manage at maximum 4 joints.
this case of 7 joints is nevertheless simple because we have all joints that are independent.
so far we can keep the two sections like that. later on we can remove their parsing.
-->
<group name="COUPLINGS">

<param name ="matrixJ2M">
1.000 0.000 0.000 0.000
0.000 1.000 0.000 0.000
0.000 0.000 1.000 0.000
0.000 0.000 0.000 1.000
</param>

<param name ="matrixM2J">
1.000 0.000 0.000 0.000
0.000 1.000 0.000 0.000
0.000 0.000 1.000 0.000
0.000 0.000 0.000 1.000
</param>

<param name ="matrixE2J">
1.000 0.000 0.000 0.000 0.000 0.000
0.000 1.000 0.000 0.000 0.000 0.000
0.000 0.000 1.000 0.000 0.000 0.000
0.000 0.000 0.000 1.000 0.000 0.000
</param>

</group>

<group name="JOINTSET_CFG">
<param name= "numberofsets"> 4 </param>
<group name="JOINTSET_0">
<param name="listofjoints"> 0 </param>
<param name="constraint"> none </param>
<param name="param1"> 0 </param>
<param name="param2"> 0 </param>
</group>
<group name="JOINTSET_1">
<param name="listofjoints"> 1 </param>
<param name="constraint"> none </param>
<param name="param1"> 0 </param>
<param name="param2"> 0 </param>
</group>
<group name="JOINTSET_2">
<param name="listofjoints"> 2 </param>
<param name="constraint"> none </param>
<param name="param1"> 0 </param>
<param name="param2"> 0 </param>
</group>
<group name="JOINTSET_3">
<param name="listofjoints"> 3 </param>
<param name="constraint"> none </param>
<param name="param1"> 0 </param>
<param name="param2"> 0 </param>
</group>
</group>

</params>

Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@
<group name="CANBOARDS">
<param name="type"> pmc </param>
<group name="PROTOCOL">
<param name="major"> 2 </param>
<param name="major"> 0 </param>
<param name="minor"> 0 </param>
</group>
<group name="FIRMWARE">
<param name="major"> 1 </param>
<param name="major"> 0 </param>
<param name="minor"> 0 </param>
<param name="build"> 0 </param>
</group>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE params PUBLIC "-//YARP//DTD yarprobotinterface 3.0//EN" "http://www.yarp.it/DTD/yarprobotinterfaceV3.0.dtd">

<params xmlns:xi="http://www.w3.org/2001/XInclude" robot="new_forearm" build="1">

<group name="SERVICE">

<param name="type"> eomn_serv_MC_mc4pluspmc </param>

<group name="PROPERTIES">

<group name="ETHBOARD">
<param name="type"> mc4plus </param>
</group>

<group name="CANBOARDS">
<param name="type"> pmc </param>
<group name="PROTOCOL">
<param name="major"> 2 </param>
<param name="minor"> 0 </param>
</group>
<group name="FIRMWARE">
<param name="major"> 1 </param>
<param name="minor"> 0 </param>
<param name="build"> 0 </param>
</group>
</group>

<group name="POS">
<param name="location"> CAN1:1 </param>
</group>


<group name="JOINTMAPPING">

<group name="ACTUATOR">
<param name="type"> pwm pwm pwm pwm pmc pmc pmc </param>
<param name="port"> CONN:P2 CONN:P3 CONN:P4 CONN:P5 CAN1:1 CAN1:1 CAN1:1 </param>
</group>

<group name="ENCODER1">
<param name="type"> pos pos pos pos pos pos pos </param>
<param name="port"> POS:hand_thumb POS:hand_index POS:hand_medium POS:hand_pinky POS:hand_thumbmetacarpus POS:hand_thumbrotation POS:hand_indexadduction </param>
<param name="position"> atjoint atjoint atjoint atjoint atjoint atjoint atjoint </param>
<param name="resolution"> 65535 65535 65535 65535 65535 65535 65535 </param>
<param name="tolerance"> 5 5 5 5 5 5 5 </param>
</group>

<group name="ENCODER2">
<param name="type"> qenc qenc qenc qenc none none none </param>
<param name="port"> CONN:P2 CONN:P3 CONN:P4 CONN:P5 CONN:none CONN:none CONN:none </param>
<param name="position"> atmotor atmotor atmotor atmotor none none none </param>
<param name="resolution"> -1600 1600 -1600 -1600 0 0 0 </param>
<param name="tolerance"> 0 0 0 0 0 0 0 </param>
</group>
</group>

</group>

</group>


</params>

Loading