Skip to content

Commit

Permalink
add cart pose mode to robot application
Browse files Browse the repository at this point in the history
  • Loading branch information
krmihaly committed Oct 14, 2024
1 parent c5eeb08 commit 5e099f0
Showing 1 changed file with 14 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -205,12 +205,23 @@ public CommandResult endFRI(){
}
@Override
public CommandResult activateControl(){
FRIJointOverlay friJointOverlay =
System.out.println("ClientCommandMode: " + FRIManager.this._clientCommandMode + ".");
if (FRIManager.this._clientCommandMode==ClientCommandMode.CARTESIAN_POSE) {
FRICartesianOverlay friCartesianOverlay =
new FRICartesianOverlay(FRIManager.this._FRISession);
PositionHold motion =
new PositionHold(FRIManager.this._controlMode, -1, null);
FRIManager.this._motionContainer =
FRIManager.this._lbr.getFlange().moveAsync(motion.addMotionOverlay(friCartesianOverlay));
}
else {
FRIJointOverlay friJointOverlay =
new FRIJointOverlay(FRIManager.this._FRISession, FRIManager.this._clientCommandMode);
PositionHold motion =
PositionHold motion =
new PositionHold(FRIManager.this._controlMode, -1, null);
FRIManager.this._motionContainer =
FRIManager.this._motionContainer =
FRIManager.this._lbr.getFlange().moveAsync(motion.addMotionOverlay(friJointOverlay));
}
return CommandResult.EXECUTED;
}
@Override
Expand Down

0 comments on commit 5e099f0

Please sign in to comment.