Skip to content

Commit

Permalink
Update MyCobotPi320.py
Browse files Browse the repository at this point in the history
  • Loading branch information
johnchoi313 committed Sep 20, 2023
1 parent db95575 commit b255cd4
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions examples/MyCobotPi/MyCobotPi320.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,9 +191,10 @@ def updateJointData():
j6 = "{:07.2f}".format(angles[5])

jointDataText.data.text = j1+"\n"+j2+"\n"+j3+"\n"+j4+"\n"+j5+"\n"+j6,

scene.update_object(jointDataText)

print(jointDataText.data.text)

#------MAKE BUTTON PANELS ------#

buttonPanel = ButtonPanel(
Expand All @@ -219,7 +220,7 @@ def updateJointData():
buttons=[Button("J1+"),Button("J2+"),Button("J3+"),Button("J4+"),Button("J5+"),Button("J6+")],
font="Roboto-Mono",

position=(0.4, 0.3, 0.0),
position=(0.4, 0.9, 0.0),
rotation=(0.0,0.0,0.0),
scale=(0.5,0.5,0.5),

Expand All @@ -235,7 +236,7 @@ def updateJointData():
buttons=[Button("J1-"),Button("J2-"),Button("J3-"),Button("J4-"),Button("J5-"),Button("J6-")],
font="Roboto-Mono",

position=(0.6, 0.3, 0.0),
position=(0.6, 0.9, 0.0),
rotation=(0.0,0.0,0.0),
scale=(0.5,0.5,0.5),

Expand All @@ -251,7 +252,7 @@ def updateJointData():
text="000.00"+"\n"+"000.00"+"\n"+"000.00"+"\n"+"000.00"+"\n"+"000.00"+"\n"+"000.00",
color=(100,255,255),

position=(0.9, 0.3, 0.0),
position=(0.9, 0.9, 0.0),
rotation=(0.0,0.0,0.0),
scale=(0.44,0.44,0.44),

Expand All @@ -263,7 +264,7 @@ def updateJointData():
object_id="randomColorObject",
material = Material(color = (0,255,0), transparent = True, opacity=0.5),

position=(0.5, 0.8, 0.0),
position=(-0.5, 0.8, 0.0),
rotation=(0,0,0),
scale=(.3,.3,.1),

Expand Down

0 comments on commit b255cd4

Please sign in to comment.