-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #605 from YuyaNagamatsu/nagamatsu/A0B
[hrpsys_ros_bridge_tutorials/A0B] add A0B interface
- Loading branch information
Showing
5 changed files
with
74 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
(load "package://hrpsys_ros_bridge/euslisp/rtm-ros-robot-interface.l") | ||
(require :a0b "package://hrpsys_ros_bridge_tutorials/models/a0b.l") | ||
|
||
(defclass a0b-interface | ||
:super rtm-ros-robot-interface | ||
:slots ()) | ||
(defmethod a0b-interface | ||
(:init (&rest args &key ((:controller-timeout ct) nil)) | ||
(send-super* :init :robot a0b-robot :controller-timeout ct args))) | ||
|
||
(defun a0b-init (&rest args) | ||
(if (not (boundp '*ri*)) | ||
(setq *ri* (instance* a0b-interface :init args))) | ||
(if (not (boundp '*a0b*)) | ||
(setq *a0b* (instance a0b-robot :init)))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
## | ||
## - collada_joint_name : euslisp_joint_name (start with :) | ||
## | ||
|
||
rarm: | ||
- RARM_JOINT0 : rarm-joint0 | ||
- RARM_JOINT1 : rarm-joint1 | ||
- RARM_JOINT2 : rarm-joint2 | ||
- RARM_JOINT3 : rarm-joint3 | ||
- RARM_JOINT4 : rarm-joint4 | ||
- RARM_JOINT5 : rarm-joint5 | ||
|
||
## | ||
## end-coords | ||
## | ||
rarm-end-coords: | ||
translate : [0.25375, 0, 0] | ||
|
||
## | ||
## reset-pose | ||
## | ||
angle-vector: | ||
zero-pose : [0.0, 0.0, 0.0, 0.0, 0.0, 0.0] | ||
reset-pose : [60.0, -90.0, 90.0, -30.0, -90.0, 90.0] | ||
reverse-reset-pose : [60.0, 90.0, -90.0, -30.0, 90.0, -90.0] |
12 changes: 12 additions & 0 deletions
12
hrpsys_ros_bridge_tutorials/src/hrpsys_ros_bridge_tutorials/a0b_hrpsys_config.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/usr/bin/env python | ||
|
||
from urata_hrpsys_config import * | ||
|
||
if __name__ == '__main__': | ||
hcf = URATAHrpsysConfigurator("A0B") | ||
if len(sys.argv) > 2 : | ||
hcf.init(sys.argv[1], sys.argv[2]) | ||
elif len(sys.argv) > 1 : | ||
hcf.init(sys.argv[1]) | ||
else : | ||
hcf.init() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters