Does Robodk provide the functionality of converting the python script directly to another robot language (like ABB rapid and motoman)
Instead of this conversion, where the poses are calculated directly (upon using "Generate robot program"):
I hoped to see something like this, where just the functions are converted:
Is this possible? and if so how?
Instead of this conversion, where the poses are calculated directly (upon using "Generate robot program"):
Code:
def function_convert_pose(input):
##
large function
##
return pose
if __name__ == "__main__":
pose = function_convert_pose(input)
robot.MoveJ(move_pose)
Code:
MODULE MOD_test_conversion
! -------------------------------
! Define customized variables here
! ...
! Tool variables:
PERS tooldata Paintgun := [TRUE,[[50.000,0.000,450.000],[0.96592583,0.00000000,0.25881905,0.00000000]],[1,[0,0,20],[1,0,0,0],0,0,0.005]];
! Reference variables:
PERS wobjdata RobotBase := [FALSE, TRUE, "", [[0.000,0.000,0.000],[1.00000000,0.00000000,0.00000000,0.00000000]],[[0,0,0],[1,0,0,0]]];
PROC Main()
ConfJ \On;
ConfL \Off;
! Program generated by RoboDK v5.7.3 for ABB IRB 6650-125/3.2 on 13/08/2024 09:43:39
MoveAbsJ [[54.501300,88.203300,-65.599300,-84.869600,90.461300,82.615300],[9E+09,9E+09,9E+09,9E+09,9E+09,9E+09]],[450.00,500,5000,1000],z1,Paintgun \WObj:=RobotBase;
ENDPROC
ENDMODULE
I hoped to see something like this, where just the functions are converted:
Code:
FUNC function_convert_pose(input):
##
large function
##
return pose;
ENDFUNC
PROC MAIN()
pose := function_convert_pose(input);
MoveJ move_pose,v1000,z5,MyTool\WObj:=Workobject_2;
ENDPROC
Is this possible? and if so how?