init: 导入项目到 meswork Gitea
This commit is contained in:
@@ -0,0 +1,49 @@
|
||||
|
||||
namespace DTTest
|
||||
{
|
||||
public partial class E { }
|
||||
public partial interface IModelManagement
|
||||
{
|
||||
/// <summary>
|
||||
/// 在此接入机器人的实际数据
|
||||
/// </summary>
|
||||
/// <param name="modelName"></param>
|
||||
/// <param name="j1"></param>
|
||||
/// <param name="j2"></param>
|
||||
/// <param name="j3"></param>
|
||||
/// <param name="j4"></param>
|
||||
/// <param name="j5"></param>
|
||||
/// <param name="j6"></param>
|
||||
/// <param name="h"></param>
|
||||
void ActualRobotMotion(string modelName, double j1, double j2, double j3, double j4, double j5, double j6, double h)
|
||||
;
|
||||
|
||||
/// <summary>
|
||||
/// 在此接入三轴(带机械手)设备的真实数据
|
||||
/// </summary>
|
||||
/// <param name="modelName"></param>
|
||||
/// <param name="x"></param>
|
||||
/// <param name="y"></param>
|
||||
/// <param name="z"></param>
|
||||
/// <param name="h"></param>
|
||||
void ActualThreeAxisMotion(string modelName, double x, double y, double z, double h)
|
||||
;
|
||||
|
||||
/// <summary>
|
||||
/// 在此接入自由度运动
|
||||
/// </summary>
|
||||
/// <param name="modelName"></param>
|
||||
/// <param name="x"></param>
|
||||
/// <param name="y"></param>
|
||||
/// <param name="z"></param>
|
||||
/// <param name="rx"></param>
|
||||
/// <param name="ry"></param>
|
||||
/// <param name="rz"></param>
|
||||
void ActualFreedomMotion(string modelName, double x, double y, double z, double rx, double ry, double rz)
|
||||
;
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,50 @@
|
||||
|
||||
namespace DTTest
|
||||
{
|
||||
public partial class E { }
|
||||
public partial interface IModelManagement
|
||||
{
|
||||
|
||||
void DirectPlay(string modelName, double x0, double y0, double z0, double rx0, double ry0, double rz0, double x, double y, double z, double rx, double ry, double rz, int usageTime)
|
||||
;
|
||||
|
||||
void DirectPlay(string modelName, double x, double y, double z, double rx, double ry, double rz, int usageTime)
|
||||
;
|
||||
|
||||
void DirectPlay_X(string modelName, double changeValue, int usageTime)
|
||||
;
|
||||
void DirectPlay_X(string modelName, double changeValue, int usageTime, int isPlay)
|
||||
;
|
||||
|
||||
void DirectPlay_Y(string modelName, double changeValue, int usageTime)
|
||||
;
|
||||
|
||||
void DirectPlay_Z(string modelName, double changeValue, int usageTime)
|
||||
;
|
||||
|
||||
void DirectPlay_RX(string modelName, double changeValue, int usageTime)
|
||||
;
|
||||
|
||||
void DirectPlay_RY(string modelName, double changeValue, int usageTime)
|
||||
;
|
||||
|
||||
void DirectPlay_RZ(string modelName, double changeValue, int usageTime)
|
||||
;
|
||||
/**************************************/
|
||||
|
||||
void DirectPlay_XY(string modelName, double x, double y, int usageTime)
|
||||
;
|
||||
|
||||
void DirectPlay_XZ(string modelName, double x, double z, int usageTime)
|
||||
;
|
||||
|
||||
void DirectPlay_YZ(string modelName, double y, double z, int usageTime)
|
||||
;
|
||||
|
||||
void DirectPlay_XYZ(string modelName, double x, double y, double z, int usageTime)
|
||||
;
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
31
DataMirrorTools_Simulator/ModelBasic/IBase/IMM.Move.Load.cs
Normal file
31
DataMirrorTools_Simulator/ModelBasic/IBase/IMM.Move.Load.cs
Normal file
@@ -0,0 +1,31 @@
|
||||
namespace DTTest
|
||||
{
|
||||
public partial class E { }
|
||||
public partial interface IModelManagement
|
||||
{
|
||||
void Move_X(string modelName, double distance, int useTime)
|
||||
;
|
||||
|
||||
void Move_Y(string modelName, double distance, int useTime)
|
||||
;
|
||||
void Move_Z(string modelName, double distance, int useTime)
|
||||
;
|
||||
void Move_RX(string modelName, double angular, int useTime)
|
||||
;
|
||||
void Move_RY(string modelName, double angular, int useTime)
|
||||
;
|
||||
void Move_RZ(string modelName, double angular, int useTime)
|
||||
;
|
||||
|
||||
|
||||
void Move_XYZ(string modelName, double x, double y, double z, int useTime)
|
||||
;
|
||||
|
||||
void Move_RxRyRz(string modelName, double rx, double ry, double rz, int useTime)
|
||||
;
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,64 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace DTTest
|
||||
{
|
||||
|
||||
|
||||
/*
|
||||
|
||||
{ "OPERATION": {frames: [
|
||||
|
||||
{time:10, objStates:[{i:装配工位完成产品加托盘,tx:1.484,ty:-0.001,tz:3.183,rx:0.000000,ry:0.000000,rz:0.000000}, ] },
|
||||
{time:10, objStates:[{i:装配工位完成产品加托盘,tx:1.484,ty:-0.001,tz:3.183,rx:0.000000,ry:0.000000,rz:0.000000}, ] },
|
||||
|
||||
]}}
|
||||
|
||||
*/
|
||||
public partial class E { }
|
||||
public partial interface IModelManagement
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 生成工艺播放数据(所有)
|
||||
/// </summary>
|
||||
/// <param name="frameValue">帧值</param>
|
||||
void OutputCraftDataF(int frameValue)
|
||||
;
|
||||
|
||||
/// <summary>
|
||||
/// 生成工艺播放数据(工艺)
|
||||
/// </summary>
|
||||
/// <param name="currCraftCode">工艺代码</param>
|
||||
/// <param name="frameValue">帧值</param>
|
||||
void OutputCraftDataF(string currCraftCode, int frameValue)
|
||||
;
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 生成工艺播放数据 的方法
|
||||
/// </summary>
|
||||
/// <param name="currCraftCode"></param>
|
||||
void OutputCraftData(string currCraftCode, int frameValue)
|
||||
;
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 生成工艺播放数据 的方法
|
||||
/// </summary>
|
||||
/// <param name="currCraftCode"></param>
|
||||
/// <param name="_dt"></param>
|
||||
void OutputCraftData(string currCraftCode, DataTable _dt, int frameValue)
|
||||
;
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace DTTest
|
||||
{
|
||||
public partial class E { }
|
||||
public partial interface IModelManagement
|
||||
{
|
||||
void PlayCurrCraft(DataTable dt)
|
||||
;
|
||||
|
||||
void PlayCurrCraftTaskEnd(string modelName)
|
||||
;
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
//using LogicComputer;
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace DTTest
|
||||
{
|
||||
public partial class E { }
|
||||
public partial interface IModelManagement
|
||||
{
|
||||
|
||||
void SetTagName(DataSet ds_Init)
|
||||
;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// PLC 信号 触发3D模型运动,内部使用
|
||||
/// </summary>
|
||||
/// <param name="tagNamePlc"></param>
|
||||
/// <param name="inputValue"></param>
|
||||
void PlcVarName_Trig_3DModel_Movement_Internal(string tagNamePlc, bool inputValue)
|
||||
;
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
29
DataMirrorTools_Simulator/ModelBasic/IBase/IMM.Socket.cs
Normal file
29
DataMirrorTools_Simulator/ModelBasic/IBase/IMM.Socket.cs
Normal file
@@ -0,0 +1,29 @@
|
||||
using ConLink.Enthernet;
|
||||
using ConLink;
|
||||
using System;
|
||||
using System.Net;
|
||||
using ConLink.Core.Net;
|
||||
using System.Data;
|
||||
using System.Collections.Generic;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace DTTest
|
||||
{
|
||||
public partial class E { }
|
||||
public partial interface IModelManagement
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 连接客户端
|
||||
/// </summary>
|
||||
/// <param name="ipPortName"></param>
|
||||
NetComplexClient ClientConnection(string ipPortName)
|
||||
;
|
||||
|
||||
|
||||
void SendMsg(string msg)
|
||||
;
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
179
DataMirrorTools_Simulator/ModelBasic/IBase/IMM.cs
Normal file
179
DataMirrorTools_Simulator/ModelBasic/IBase/IMM.cs
Normal file
@@ -0,0 +1,179 @@
|
||||
using Global;
|
||||
using ModelBasic;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.IO;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace DTTest
|
||||
{
|
||||
public partial class E { }
|
||||
public partial interface IModelManagement
|
||||
{
|
||||
|
||||
|
||||
|
||||
#region 加载模型(4个重载)
|
||||
|
||||
/// <summary>
|
||||
/// 装载模型
|
||||
/// </summary>
|
||||
/// <param name="ipPortOpName_1"></param>
|
||||
/// <param name="prefix"></param>
|
||||
/// <param name="objectHeader"></param>
|
||||
/// <param name="sendInterval"></param>
|
||||
void LoadModel(string ipPortOpName_1, string prefix0, string objectHeader0, int sendInterval0, string connectionStringCurr, string projectNameCurr)
|
||||
;
|
||||
|
||||
/// <summary>
|
||||
/// 装载模型
|
||||
/// </summary>
|
||||
/// <param name="ipPortOpName_1"></param>
|
||||
/// <param name="ipPortOpName_2"></param>
|
||||
/// <param name="prefix"></param>
|
||||
/// <param name="objectHeader"></param>
|
||||
/// <param name="sendInterval"></param>
|
||||
void LoadModel(string ipPortOpName_1, string ipPortOpName_2, string prefix0, string objectHeader0, int sendInterval0, string connectionStringCurr, string projectNameCurr)
|
||||
;
|
||||
|
||||
|
||||
///// <summary>
|
||||
///// 装载模型
|
||||
///// </summary>
|
||||
///// <param name="clientLocal"></param>
|
||||
///// <param name="prefix"></param>
|
||||
///// <param name="objectHeader"></param>
|
||||
///// <param name="sendInterval"></param>
|
||||
//public void LoadModel(NetComplexClient clientLocal0, string prefix0, string objectHeader0, int sendInterval0)
|
||||
//;
|
||||
|
||||
///// <summary>
|
||||
/////
|
||||
///// </summary>
|
||||
///// <param name="clientLocal"></param>
|
||||
///// <param name="clientCloud"></param>
|
||||
///// <param name="prefix"></param>
|
||||
///// <param name="objectHeader"></param>
|
||||
///// <param name="sendInterval"></param>
|
||||
//public void LoadModel(NetComplexClient clientLocal0, NetComplexClient clientCloud0, string prefix0, string objectHeader0, int sendInterval0)
|
||||
//;
|
||||
|
||||
|
||||
|
||||
#endregion
|
||||
|
||||
#region 得到播放数据(3种方法)
|
||||
|
||||
/// <summary>
|
||||
/// 从文件得到播放数据
|
||||
/// </summary>
|
||||
/// <param name="fileName"></param>
|
||||
/// <param name="modelName"></param>
|
||||
/// <returns></returns>
|
||||
OperationResult<List<String>, string, string> GetOrderFromFile(string fileName, string modelName)
|
||||
;
|
||||
|
||||
/// <summary>
|
||||
/// 从PDPS文件得到播放数据
|
||||
/// </summary>
|
||||
/// <param name="fileName"></param>
|
||||
/// <param name="modelName"></param>
|
||||
/// <returns></returns>
|
||||
OperationResult<List<String>, string, string> GetOrderFromPdps(string fileName, string modelName)
|
||||
;
|
||||
|
||||
/// <summary>
|
||||
/// 通过自定义算法得到播放数据
|
||||
/// </summary>
|
||||
/// <param name="setX">X方向变化值</param>
|
||||
/// <param name="setY">Y方向变化值</param>
|
||||
/// <param name="setZ">Z方向变化值</param>
|
||||
/// <param name="setRX">RX方向变化值</param>
|
||||
/// <param name="setRY">RY方向变化值</param>
|
||||
/// <param name="setRZ">RZ方向变化值</param>
|
||||
/// <param name="modelName">模型名称</param>
|
||||
/// <param name="time">使用时间</param>
|
||||
/// <returns> OperationResult<T,T,T> </returns>
|
||||
OperationResult<List<String>, string, string> GetOrder(double setX, double setY, double setZ, double setRX, double setRY, double setRZ, string modelName, int time)
|
||||
;
|
||||
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 播放
|
||||
/// </summary>
|
||||
/// <param name="playID"></param>
|
||||
void Play动作(int playID)
|
||||
;
|
||||
/// <summary>
|
||||
/// 播放
|
||||
/// </summary>
|
||||
/// <param name="playID"></param>
|
||||
void Play(string modelName)
|
||||
;
|
||||
/// <summary>
|
||||
/// 暂停
|
||||
/// </summary>
|
||||
void Suspend(string modelName)
|
||||
;
|
||||
|
||||
/// <summary>
|
||||
/// 终了
|
||||
/// </summary>
|
||||
void End(string modelName)
|
||||
;
|
||||
/// <summary>
|
||||
/// 复位
|
||||
/// </summary>
|
||||
void ReSet(string modelName)
|
||||
;
|
||||
|
||||
/// <summary>
|
||||
/// 删除动作号
|
||||
/// </summary>
|
||||
/// <param name="playID"></param>
|
||||
/// <returns></returns>
|
||||
List<String> DeleteOrder(int playID)
|
||||
;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 翻阅模型对象
|
||||
/// </summary>
|
||||
/// <param name="modelName"></param>
|
||||
void SelectModel(string modelName)
|
||||
;
|
||||
|
||||
/// <summary>
|
||||
/// 翻阅动作号对象
|
||||
/// </summary>
|
||||
/// <param name="playID"></param>
|
||||
/// <returns></returns>
|
||||
string SelectPlayID(int playID)
|
||||
;
|
||||
|
||||
/// <summary>
|
||||
/// 得到模型队列
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
List<String> GetModeList()
|
||||
;
|
||||
|
||||
|
||||
void FileDataMotion(string modelName)
|
||||
;
|
||||
|
||||
|
||||
DataTable LoadModelTreeView()
|
||||
;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user