-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathGripper.cs
35 lines (32 loc) · 1005 Bytes
/
Gripper.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
using RASDK.Gripper;
using System;
namespace MainForm
{
public partial class MainForm
{
/// <summary>
/// 夾爪控制器。
/// </summary>
private IGripperController Gripper;
/// <summary>
/// 進行夾爪動作。
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void button_gripper_action_Click(object sender, EventArgs e)
{
Gripper.Control(Convert.ToInt32(numericUpDown_gripper_position.Value),
Convert.ToInt32(numericUpDown_gripper_speed.Value),
Convert.ToInt32(numericUpDown_gripper_force.Value));
}
/// <summary>
/// 重置夾爪。
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void button_gripper_reset_Click(object sender, EventArgs e)
{
Gripper.Reset();
}
}
}