Skip to content

Commit

Permalink
updating g_code_logger_dem
Browse files Browse the repository at this point in the history
- the demonstration method was updated according the new changes
  • Loading branch information
philipp1604 committed Jun 3, 2024
1 parent 30812e6 commit f1951da
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
8 changes: 6 additions & 2 deletions examples/g_code_logger_dem.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,13 @@ def run_g_command(g_code_processor_iterator: pi.GCodeProcessor,
working_dir, 'g_codes', 'g_code_logger_joint_positions.txt')

g_code_logger.write_g_code(
g_code_logger.g_code_robot_view, robot_view_path, )
g_code_logger.g_code_robot_view, robot_view_path, {
'M11': '%@example_call'},
"%prefix", "%postfix")
g_code_logger.write_g_code(
g_code_logger.g_code_joint_position, joint_poisitions_path)
g_code_logger.g_code_joint_position, joint_poisitions_path, {
'M11': '%@example_call'},
"%prefix", "%postfix")

# Alternative for recording G-Code
g_code_logger.g_code_robot_view = []
Expand Down
2 changes: 2 additions & 0 deletions examples/g_codes/g_code_logger_joint_positions.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
%prefix
G1 RA1=0.244972669564758 RA2=0.118754015429859 RA3=-1.880942356805656 RA4=-3.14159265358 RA5=-1.142014751574451 RA6=0.244950201609223
G1 RA1=0.244972669581823 RA2=0.118762307626707 RA3=-1.88094235680345 RA5=-1.14205892045918 RA6=0.244950202696079
G1 RA2=0.118762307626713 RA5=-1.142058920459209
Expand Down Expand Up @@ -174,3 +175,4 @@ G1 RA1=0.233624528069824 RA2=0.128842450758277 RA3=-1.855921512081748 RA4=-3.069
G1 RA1=0.237388143768705 RA2=0.125383801759181 RA3=-1.864270397753163 RA4=-3.093771388976514 RA5=-1.141915681192551 RA6=0.217667494194972
G1 RA1=0.241174675159616 RA2=0.122022577955033 RA3=-1.872607153890842 RA4=-3.117776002543748 RA5=-1.14181498432681 RA6=0.231275013568937
G1 RA1=0.244982688983104 RA2=0.118763069457143 RA3=-1.88093131215734 RA4=-3.14159265358 RA5=-1.142020787949005 RA6=0.244994436285743
%postfix
2 changes: 2 additions & 0 deletions examples/g_codes/g_code_logger_robot_view.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
%prefix
G1 X4.000012844955127 Y-6.000009525250678 Z1.499996011167368 A-1.570621383874621 B0.000114933736584 C0.000022466438922
G1 X4.000003657177785 Y-6.000011822100228 Z1.499982732536868 A-1.570634106107133 B0.000165828821332 C0.000022463583131
G1 X4.00000365717778 Y-6.000011822100229 Z1.499982732536858 A-1.570634106107143 B0.00016582882137 C0.000022463583131
Expand Down Expand Up @@ -174,3 +175,4 @@ G1 X4.021455596981767 Y-6.000023487859022 Z1.52142577274849 A-1.503427916381268
G1 X4.014313331946768 Y-6.000023208401351 Z1.514284595907873 A-1.52586692552355 B0.000068754849032 C0.000050400030566
G1 X4.007171021443357 Y-6.000022858986227 Z1.50714340471288 A-1.548306134168594 B0.000069527996715 C0.000049390268237
G1 X4.000016659961092 Y-5.999987280088333 Z1.499997825493375 A-1.570622370243438 B0.000118857411282 C-0.00001174894119
%postfix

0 comments on commit f1951da

Please sign in to comment.