|
@@ -147,13 +147,13 @@ public class ReverseSceneServiceImpl implements IReverseSceneService {
|
|
|
JSONArray positions = observerObj.getJSONArray("position");
|
|
|
for(int j = 0; j < positions.size(); j++){
|
|
|
BigDecimal v = (BigDecimal) positions.get(i);
|
|
|
- if(i == 0){
|
|
|
+ if(j == 0){
|
|
|
translation.put("x", v);
|
|
|
}
|
|
|
- if(i == 1){
|
|
|
+ if(j == 1){
|
|
|
translation.put("y", v);
|
|
|
}
|
|
|
- if(i == 2){
|
|
|
+ if(j == 2){
|
|
|
translation.put("z", v);
|
|
|
}
|
|
|
}
|
|
@@ -163,13 +163,13 @@ public class ReverseSceneServiceImpl implements IReverseSceneService {
|
|
|
JSONArray standing_positions = observerObj.getJSONArray("standing_position");
|
|
|
for(int j = 0; j < standing_positions.size(); j++){
|
|
|
BigDecimal v = (BigDecimal) standing_positions.get(i);
|
|
|
- if(i == 0){
|
|
|
+ if(j == 0){
|
|
|
puck.put("x", v);
|
|
|
}
|
|
|
- if(i == 1){
|
|
|
+ if(j == 1){
|
|
|
puck.put("y", v);
|
|
|
}
|
|
|
- if(i == 2){
|
|
|
+ if(j == 2){
|
|
|
puck.put("z", v);
|
|
|
}
|
|
|
}
|