dengsixing il y a 8 mois
Parent
commit
88ec08f8da

+ 2 - 2
src/main/java/com/fdkankan/scene/service/impl/ReverseSceneServiceImpl.java

@@ -146,7 +146,7 @@ public class ReverseSceneServiceImpl implements IReverseSceneService {
             pose.put("translation", translation);
             JSONArray positions = observerObj.getJSONArray("position");
             for(int j = 0; j < positions.size(); j++){
-                BigDecimal v = (BigDecimal) positions.get(i);
+                BigDecimal v = (BigDecimal) positions.get(j);
                 if(j == 0){
                     translation.put("x", v);
                 }
@@ -162,7 +162,7 @@ public class ReverseSceneServiceImpl implements IReverseSceneService {
             sweepLocation.put("puck", puck);
             JSONArray standing_positions = observerObj.getJSONArray("standing_position");
             for(int j = 0; j < standing_positions.size(); j++){
-                BigDecimal v = (BigDecimal) standing_positions.get(i);
+                BigDecimal v = (BigDecimal) standing_positions.get(j);
                 if(j == 0){
                     puck.put("x", v);
                 }