Skip to content

Commit b70af01

Browse files
Marco Frigeriomfrigerio17
Marco Frigerio
authored andcommitted
Update the urdf2kindsl submodule and fix the tests
The kindsl-to-urdf is now performed by the `rmt` tool (and not by the ilk-generator, which does not have that functionality anymore). Force the old diff2html.py to be interpreted with python2, because it does not work with 3
1 parent 491a701 commit b70af01

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

tests/urdf-conversion/runtest.sh

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,17 @@ mkdir -p $dir_gen
1616
out_kindsl="$dir_gen/ur5-gmv.urdf.kindsl"
1717

1818
urdf2kindsl="../../urdf2kindsl/urdf2kindsl.py"
19+
kindsl2urdf="rmtool.sh exp -f urdf"
1920

2021
# Conversions
2122

2223
echo "Converting $in_kindsl to URDF and back ..."
23-
ilk-generator.sh --robot-model $in_kindsl --gen-urdf "$out_urdf"
24-
$urdf2kindsl "$out_urdf" -o "$out_urdf.kindsl"
24+
$kindsl2urdf -o $out_urdf $in_kindsl
25+
$urdf2kindsl -o "$out_urdf.kindsl" $out_urdf
2526

2627
echo "Converting $in_urdf to KinDSL and back ..."
27-
$urdf2kindsl $in_urdf -o "$out_kindsl"
28-
ilk-generator.sh --robot-model "$out_kindsl" --gen-urdf "$out_kindsl.urdf"
28+
$urdf2kindsl -o "$out_kindsl" $in_urdf
29+
$kindsl2urdf -o "$out_kindsl.urdf" $out_kindsl
2930

3031

3132
# Some checks
@@ -35,8 +36,8 @@ cp ../utils/diff-style.css $dir_gen
3536
../utils/diff2html.py --style-sheet diff-style.css $in_kindsl "$out_urdf.kindsl" > $dir_gen/kindsl_diff.html
3637

3738
echo "Checking kinematics of $in_urdf and $out_kindsl.urdf ..."
38-
pos1=`$urdf2kindsl --link-origin wrist_3_link $in_urdf`
39-
pos2=`$urdf2kindsl --link-origin wrist_3_link $out_kindsl.urdf`
39+
pos1=`$urdf2kindsl --link-origin wrist_3 $in_urdf`
40+
pos2=`$urdf2kindsl --link-origin wrist_3 $out_kindsl.urdf`
4041
echo "Position of wrist_3_link in model $in_urdf : $pos1" > $dir_gen/urdf_pos
4142
echo "Position of wrist_3_link in model $out_kindsl.urdf : $pos2" >> $dir_gen/urdf_pos
4243

tests/utils/diff2html.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python
1+
#!/usr/bin/python2
22

33
# diff2html
44
#

urdf2kindsl

Submodule urdf2kindsl updated from f67ea10 to f1a1acb

0 commit comments

Comments
 (0)