Skip to content

Commit

Permalink
use the index from the lookup table
Browse files Browse the repository at this point in the history
  • Loading branch information
madhephaestus committed Mar 21, 2024
1 parent 38a73a0 commit 0859837
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/mujoco/MuJoCoModelManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ public void setAllJointPositions(HashMap<String, Double> putPositions) {
for (String jointName:putPositions.keySet()) {
int i = getJointIndex(jointName);
double position =putPositions.get(jointName);
data.qpos().put(i, position);
data.qpos().put(model.jnt_qposadr().get(i), position);
}
}
public HashMap<String, Double> getControlInstance() {
Expand Down

0 comments on commit 0859837

Please sign in to comment.