Skip to content

Commit fdef44f

Browse files
committed
[hrpsys_ros_bridge_tutorials] overwrite HRP2JSKNT* by HRP2JSKNT*_WITH_3HAND
1 parent 838b1f6 commit fdef44f

16 files changed

+112
-933
lines changed

hrpsys_ros_bridge_tutorials/CMakeLists.txt

Lines changed: 29 additions & 99 deletions
Large diffs are not rendered by default.

hrpsys_ros_bridge_tutorials/euslisp/hrp2jsknt-interface.l

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
(load "package://hrpsys_ros_bridge/euslisp/rtm-ros-robot-interface.l")
2-
(require :hrp2jsknt "package://hrpsys_ros_bridge_tutorials/models/hrp2jsknt_with_3hand.l")
2+
(require :hrp2jsknt "package://hrpsys_ros_bridge_tutorials/models/hrp2jsknt.l")
33
(when (probe-file (ros::resolve-ros-path "package://hrpsys_ros_bridge_tutorials/euslisp/hrp2jsknt-utils.l"))
44
(require :hrp2jsknt-utils "package://hrpsys_ros_bridge_tutorials/euslisp/hrp2jsknt-utils.l"))
55
(load "package://hrpsys_ros_bridge_tutorials/euslisp/hrp2-common-interface.l")

hrpsys_ros_bridge_tutorials/euslisp/hrp2jsknt-utils.l

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
(require :hrp2jsknt "package://hrpsys_ros_bridge_tutorials/models/hrp2jsknt_with_3hand.l")
1+
(require :hrp2jsknt "package://hrpsys_ros_bridge_tutorials/models/hrp2jsknt.l")
22
(load "package://hrpsys_ros_bridge_tutorials/euslisp/hrp3hand-utils.l")
33

44
(eval
@@ -11,7 +11,7 @@
1111
(prog1
1212
(send-super* :init-ending args)
1313
(send self :set-additional-end-coords)
14-
;;(send self :define-min-max-table)
14+
(send self :define-min-max-table)
1515
(when (< (norm (send (send (send self :worldcoords) :transformation
1616
(send (car (send self :links)) :worldcoords)) :pos))
1717
0.1)

hrpsys_ros_bridge_tutorials/euslisp/hrp2jsknts-interface.l

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
(load "package://hrpsys_ros_bridge/euslisp/rtm-ros-robot-interface.l")
2-
(require :hrp2jsknts "package://hrpsys_ros_bridge_tutorials/models/hrp2jsknts_with_3hand.l")
2+
(require :hrp2jsknts "package://hrpsys_ros_bridge_tutorials/models/hrp2jsknts.l")
33
(when (probe-file (ros::resolve-ros-path "package://hrpsys_ros_bridge_tutorials/euslisp/hrp2jsknts-utils.l"))
44
(require :hrp2jsknts-utils "package://hrpsys_ros_bridge_tutorials/euslisp/hrp2jsknts-utils.l"))
55
(load "package://hrpsys_ros_bridge_tutorials/euslisp/hrp2-common-interface.l")

hrpsys_ros_bridge_tutorials/euslisp/hrp2jsknts-utils.l

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
(load "package://hrpsys_ros_bridge_tutorials/models/hrp2jsknts_with_3hand.l")
1+
(require :hrp2jsknts "package://hrpsys_ros_bridge_tutorials/models/hrp2jsknts.l")
22
(load "package://hrpsys_ros_bridge_tutorials/euslisp/hrp3hand-utils.l")
33

44
(eval
@@ -10,7 +10,7 @@
1010
(&rest args)
1111
(prog1
1212
(send-super* :init-ending args)
13-
;;(send self :define-min-max-table)
13+
(send self :define-min-max-table)
1414
(when (< (norm (send (send (send self :worldcoords) :transformation
1515
(send (car (send self :links)) :worldcoords)) :pos))
1616
0.1)

hrpsys_ros_bridge_tutorials/euslisp/hrp3hand-utils.l

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,9 @@
4242
(send self :limb :rhand :angle-vector)
4343
(send self :limb :lhand :angle-vector))
4444
)
45-
)
45+
(:collision-check-pairs
46+
(&key ((:links ls) (set-difference (cons (car links) (all-child-links (car links)))
47+
(append (send self :limb :rhand :links) (send self :limb :lhand :links)))))
48+
(send-super :collision-check-pairs :links ls))
49+
)
4650
)

hrpsys_ros_bridge_tutorials/models/HRP2JSKNT.PDgain.dat

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,16 @@
3131
1400 100
3232
460 100
3333
1870 100
34-
0 0
34+
0 0
35+
50 10
36+
50 10
37+
50 10
38+
50 10
39+
50 10
40+
50 10
41+
50 10
42+
50 10
43+
50 10
44+
50 10
45+
50 10
46+
50 10

hrpsys_ros_bridge_tutorials/models/HRP2JSKNT.urdf.xacro

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
<robot xmlns:xacro="http://www.ros.org/wiki/xacro" name="HRP2JSKNT" >
2-
<xacro:include filename="HRP2JSKNT_body.urdf" />
3-
<xacro:include filename="HRP3HAND_L.urdf" />
4-
<xacro:include filename="HRP3HAND_R.urdf" />
2+
<xacro:include filename="HRP2JSKNT.urdf" />
53
<xacro:include filename="$(find multisense_description)/urdf/multisenseSL.urdf" />
64
<joint name="hrp2_to_multisense" type="fixed">
75
<parent link="HEAD_LINK1" />

hrpsys_ros_bridge_tutorials/models/HRP2JSKNTS.PDgain.dat

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,16 @@
3131
1400 100
3232
460 100
3333
1870 100
34-
0 0
34+
0 0
35+
50 10
36+
50 10
37+
50 10
38+
50 10
39+
50 10
40+
50 10
41+
50 10
42+
50 10
43+
50 10
44+
50 10
45+
50 10
46+
50 10

hrpsys_ros_bridge_tutorials/models/HRP2JSKNTS.urdf.xacro

Lines changed: 0 additions & 11 deletions
This file was deleted.

hrpsys_ros_bridge_tutorials/models/HRP2JSKNTS_WITH_3HAND.PDgain.dat

Lines changed: 0 additions & 46 deletions
This file was deleted.

hrpsys_ros_bridge_tutorials/models/HRP2JSKNT_WITH_3HAND.PDgain.dat

Lines changed: 0 additions & 46 deletions
This file was deleted.

hrpsys_ros_bridge_tutorials/models/hrp2jsknt.yaml

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
##
22
## - collada_joint_name : euslisp_joint_name (start with :)
33
##
4+
limbs: [rleg, lleg, torso, head, rarm, larm, rhand, lhand]
45

56
rleg:
67
- RLEG_JOINT0 : rleg-crotch-y
@@ -19,8 +20,8 @@ lleg:
1920
- LLEG_JOINT5 : lleg-ankle-r
2021
- LLEG_JOINT6 : lleg-toe-p
2122
torso:
22-
- CHEST_JOINT0 : torso-waist-y
23-
- CHEST_JOINT1 : torso-waist-p
23+
- CHEST_JOINT0 : torso-waist-p
24+
- CHEST_JOINT1 : torso-waist-y
2425
head:
2526
- HEAD_JOINT0 : head-neck-y
2627
- HEAD_JOINT1 : head-neck-p
@@ -42,6 +43,20 @@ larm:
4243
- LARM_JOINT5 : larm-wrist-r
4344
- LARM_JOINT6 : larm-wrist-p
4445
- LARM_JOINT7 : larm-thumb-r
46+
rhand:
47+
- R_THUMBCM_Y : rarm-t-1y
48+
- R_THUMBCM_P : rarm-t-1p
49+
- R_INDEXMP_R : rarm-f1-1r
50+
- R_INDEXMP_P : rarm-f1-1p
51+
- R_INDEXPIP_R : rarm-f1-2r
52+
- R_MIDDLEPIP_R : rarm-f2-2r
53+
lhand:
54+
- L_THUMBCM_Y : larm-t-1y
55+
- L_THUMBCM_P : larm-t-1p
56+
- L_INDEXMP_R : larm-f1-1r
57+
- L_INDEXMP_P : larm-f1-1p
58+
- L_INDEXPIP_R : larm-f1-2r
59+
- L_MIDDLEPIP_R : larm-f2-2r
4560

4661
##
4762
## end-coords
@@ -140,13 +155,17 @@ angle-vector:
140155
0.0, 0.0,
141156
0.0, 0.0,
142157
10.0, -10.0, 0.0, -25.0, 0.0, 0.0, -10.0, 15.0,
143-
10.0, 10.0, 0.0, -25.0, 0.0, 0.0, -10.0, -15.0]
158+
10.0, 10.0, 0.0, -25.0, 0.0, 0.0, -10.0, -15.0,
159+
0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
160+
0.0, 0.0, 0.0, 0.0, 0.0, 0.0]
144161
reset-manip-pose : [0.0, 0.0, -26.0, 50.0, -24.0, 0.0, 0.0,
145162
0.0, 0.0, -26.0, 50.0, -24.0, 0.0, 0.0,
146163
0.0, 0.0,
147164
0.0, 40.0,
148165
50.0, -30.0, -10.0, -120.0, -25.0, -5.0, -20.0, 60.0,
149-
50.0, 30.0, 10.0, -120.0, 25.0, 5.0, -20.0, -60.0]
166+
50.0, 30.0, 10.0, -120.0, 25.0, 5.0, -20.0, -60.0,
167+
0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
168+
0.0, 0.0, 0.0, 0.0, 0.0, 0.0]
150169
# for gazebo simulation
151170
replace_xmls:
152171
- match_rule:

0 commit comments

Comments
 (0)