|
@@ -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);
|
|
|
}
|