Skip to content

🧰 The SDK of robotic arm, specialized for NFU I.R.S Lab.

Notifications You must be signed in to change notification settings

nfurobotlab-member/robotic-arm-sdk

 
 

Repository files navigation

Robotic Arm SDK

GitHub release GitHub repo size GitHub issues

機械手臂 SDK。目前主要支援:

  • HIWIN 機械手臂
  • HIWIN 電動夾爪
  • TM Robot 機械手臂
  • IDS 工業攝影機

支援的環境為 .NET Framework 4.7.2 (64-bit)

Forked from HRTK 1.4.0

各 Project 功能

使用方法

安裝 NuGet Package

  1. 先在 releases 頁面中下載 NuGet Package,其檔案名稱爲「NFUIRSL.RASDK.x.x.x.nupkg」。
  2. 將「NFUIRSL.RASDK.x.x.x.nupkg」放到一個自己方便管理的路徑下。如:C:\Users\MYUSERNAME\Documents\References
  3. 將上述的路徑加入到 Visual Studio 中的套件來源。可參考 Microsoft 官方說明
  4. 在 Visual Studio 爲目標專案或解決方案增加 NuGet Package「NFUIRSL.RASDK」。可參考 Microsoft 官方說明

機械手臂(RASDK.Arm)

// 實體化。
var logHandler = new RASDK.Basic.EmptyLog(); // EmptyLog():不產生 Log 檔。
var message = new RASDK.Basic.Message.GeneralMessage(logHandler); // GeneralMessage():一般的訊息框。
var arm = new RASDK.Arm.Hiwin.RoboticArm("192.168.100.123", message); // 以 HIWIN 手臂爲例。

arm.Connection.Open();  // 連線。
arm.Connection.Close(); // 斷線。
var connected = arm.Connection.IsOpen;  // 判斷連線。

arm.Motion.Homing();                            // 復歸,回原點。
arm.Motion.Absolute(-20, 400, 350, 180, 0, 90); // 絕對運動。
arm.Motion.Relative(0, 15, -0.5, 0, 0, 0);      // 相對運動。
arm.Motion.Jog("+X");                           // 吋動。
arm.Motion.Abort();                             // 停止動作。

arm.Speed = 25;             // 設定速度。
arm.Acceleration = 20;      // 設定加速度。
var speed = arm.Speed;      // 取得速度。
var acc = arm.Acceleration; // 取得加速度。

var position = arm.GetNowPosition(); // 取得目前座標位置。

About

🧰 The SDK of robotic arm, specialized for NFU I.R.S Lab.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 100.0%