first commit -push
This commit is contained in:
49
RobotNet.Script.Expressions/ElementProperties.cs
Normal file
49
RobotNet.Script.Expressions/ElementProperties.cs
Normal file
@@ -0,0 +1,49 @@
|
||||
namespace RobotNet.Script.Expressions;
|
||||
|
||||
/// <summary>
|
||||
/// Quản lý các thuộc tính của một phần tử trong bản đồ.
|
||||
/// </summary>
|
||||
public record ElementProperties
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets a value indicating whether the resource is currently open.
|
||||
/// </summary>
|
||||
public bool IsOpen { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets a dictionary that maps string keys to boolean values.
|
||||
/// </summary>
|
||||
public IDictionary<string, bool> Bool { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets a dictionary that maps string keys to double values.
|
||||
/// </summary>
|
||||
public IDictionary<string, double> Double { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets a dictionary that maps string keys to integer values.
|
||||
/// </summary>
|
||||
public IDictionary<string, int> Int { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets a dictionary that maps string keys to string values.
|
||||
/// </summary>
|
||||
public IDictionary<string, string> String { get; }
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
/// <param name="isOpen"></param>
|
||||
/// <param name="dbool"></param>
|
||||
/// <param name="ddouble"></param>
|
||||
/// <param name="dint"></param>
|
||||
/// <param name="dstring"></param>
|
||||
public ElementProperties(bool isOpen, IDictionary<string, bool> dbool, IDictionary<string, double> ddouble, IDictionary<string, int> dint, IDictionary<string, string> dstring)
|
||||
{
|
||||
IsOpen = isOpen;
|
||||
Bool = dbool;
|
||||
Double = ddouble;
|
||||
Int = dint;
|
||||
String = dstring;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net9.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
<GenerateDocumentationFile>True</GenerateDocumentationFile>
|
||||
<IsAotCompatible>True</IsAotCompatible>
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
||||
14
RobotNet.Script.Expressions/RobotState.cs
Normal file
14
RobotNet.Script.Expressions/RobotState.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
namespace RobotNet.Script.Expressions;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Trạng thái hiện tại của robot, bao gồm thông tin về vị trí, trạng thái hoạt động, pin, v.v.
|
||||
/// </summary>
|
||||
/// <param name="IsReady"></param>
|
||||
/// <param name="Voltage"></param>
|
||||
/// <param name="IsLoading"></param>
|
||||
/// <param name="IsCharging"></param>
|
||||
/// <param name="X"></param>
|
||||
/// <param name="Y"></param>
|
||||
/// <param name="Theta"></param>
|
||||
public record RobotState(bool IsReady, double Voltage, bool IsLoading, bool IsCharging, double X, double Y, double Theta);
|
||||
Reference in New Issue
Block a user