YashsharmaPhD commited on
Commit
2d3e2e7
·
verified ·
1 Parent(s): 3660d05

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -181,6 +181,11 @@ with gr.Blocks(title="Franka Arm Control with 7 DoF and Gripper Options") as dem
181
 
182
  gr.Button("🔄 Reset Robot").click(fn=reset, inputs=[], outputs=[img_output, text_output])
183
 
 
 
 
 
 
184
  # Pick and Place Inputs
185
  gr.Markdown("### 🧾 Enter Joint Angles for Pick and Place")
186
  position_input = gr.Textbox(label="Position Angles (7 values in radians)", placeholder="e.g. 0.0, -0.5, 0.3, -1.2, 0.0, 1.5, 0.8")
 
181
 
182
  gr.Button("🔄 Reset Robot").click(fn=reset, inputs=[], outputs=[img_output, text_output])
183
 
184
+ # Joint angles input box for user to input manually
185
+ gr.Markdown("### 🧾 Enter Joint Angles (comma-separated)")
186
+ joint_input = gr.Textbox(label="Joint Angles (7 values in radians)", placeholder="e.g. 0.0, -0.5, 0.3, -1.2, 0.0, 1.5, 0.8")
187
+ gr.Button("▶️ Move to Angles").click(fn=move_to_input_angles, inputs=joint_input, outputs=[img_output, text_output])
188
+
189
  # Pick and Place Inputs
190
  gr.Markdown("### 🧾 Enter Joint Angles for Pick and Place")
191
  position_input = gr.Textbox(label="Position Angles (7 values in radians)", placeholder="e.g. 0.0, -0.5, 0.3, -1.2, 0.0, 1.5, 0.8")