Skip to content

Commit

Permalink
deeper fixes for
Browse files Browse the repository at this point in the history
  • Loading branch information
madhephaestus committed Dec 24, 2024
1 parent f28f6c0 commit f6e7d80
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion libraries/bowler-script-kernel
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,14 @@ private void homeLimb(DHParameterKinematics c) {
double[] joints = c.getCurrentJointSpaceVector();
for (int i = 0; i < c.getNumberOfLinks(); i++) {
joints[i] = 0;
}
try {
c.setDesiredJointSpaceVector(joints, c.getBestTime(joints));
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
for (int i = 0; i < c.getNumberOfLinks(); i++) {
try {
if(c.getFollowerMobileBase(i)!=null) {
homeBase(c.getFollowerMobileBase(i));
Expand All @@ -282,13 +290,6 @@ private void homeLimb(DHParameterKinematics c) {
ex.printStackTrace();
}
}
try {
c.setDesiredJointSpaceVector(joints, c.getBestTime(joints));
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}

}

@Override
Expand Down

0 comments on commit f6e7d80

Please sign in to comment.