diff --git a/src/main/java/org/myrobotlab/service/InMoov2Arm.java b/src/main/java/org/myrobotlab/service/InMoov2Arm.java index 6305eb984a..d190af46e8 100644 --- a/src/main/java/org/myrobotlab/service/InMoov2Arm.java +++ b/src/main/java/org/myrobotlab/service/InMoov2Arm.java @@ -89,6 +89,11 @@ public static DHRobotArm getDHRobotArm(String name, String side) { return arm; } + @Deprecated /* use onMove */ + public void onMoveArm(HashMap map) { + onMove(map); + } + public void onMove(Map map) { moveTo(map.get("bicep"), map.get("rotate"), map.get("shoulder"), map.get("omoplate")); } diff --git a/src/main/java/org/myrobotlab/service/InMoov2Hand.java b/src/main/java/org/myrobotlab/service/InMoov2Hand.java index a4c1b35bae..9bf4cf923b 100644 --- a/src/main/java/org/myrobotlab/service/InMoov2Hand.java +++ b/src/main/java/org/myrobotlab/service/InMoov2Hand.java @@ -2,6 +2,7 @@ import java.io.File; import java.io.IOException; +import java.util.HashMap; import java.util.HashSet; import java.util.List; import java.util.Map; @@ -489,6 +490,11 @@ public LeapData onLeapData(LeapData data) { return data; } + @Deprecated /* use onMove */ + public void onMoveHand(HashMap map) { + onMove(map); + } + public void onMove(Map map) { moveTo(map.get("thumb"), map.get("index"), map.get("majeure"), map.get("majeure"), map.get("pinky"), map.get("wrist")); } diff --git a/src/main/java/org/myrobotlab/service/InMoov2Head.java b/src/main/java/org/myrobotlab/service/InMoov2Head.java index 1035f22995..0df855a1ab 100644 --- a/src/main/java/org/myrobotlab/service/InMoov2Head.java +++ b/src/main/java/org/myrobotlab/service/InMoov2Head.java @@ -2,6 +2,7 @@ import java.io.File; import java.io.IOException; +import java.util.HashMap; import java.util.Map; import java.util.concurrent.ThreadLocalRandom; @@ -218,6 +219,11 @@ public void lookAt(Double x, Double y, Double z) { log.info("object distance is {},rothead servo {},neck servo {} ", distance, rotation, colatitude); } + @Deprecated /* use onMoov */ + public void onMoveHead(HashMap map) { + onMove(map); + } + public void onMove(Map map) { moveTo(map.get("neck"), map.get("rothead"), map.get("eyeX"), map.get("eyeY"), map.get("jaw"), map.get("rollNeck")); } diff --git a/src/main/java/org/myrobotlab/service/InMoov2Torso.java b/src/main/java/org/myrobotlab/service/InMoov2Torso.java index d6f0fcc1c4..f3953699c5 100644 --- a/src/main/java/org/myrobotlab/service/InMoov2Torso.java +++ b/src/main/java/org/myrobotlab/service/InMoov2Torso.java @@ -2,6 +2,7 @@ import java.io.File; import java.io.IOException; +import java.util.HashMap; import java.util.Map; import org.myrobotlab.framework.Service; @@ -93,6 +94,11 @@ public void disable() { lowStom.disable(); } + @Deprecated /* use onMove */ + public void onMoveTorso(HashMap map) { + onMove(map); + } + public void onMove(Map map) { moveTo(map.get("topStom"), map.get("midStom"), map.get("lowStom")); }