readme
This commit is contained in:
@@ -1,15 +0,0 @@
|
||||
using Godot;
|
||||
using RosSharp.RosBridgeClient.Protocols;
|
||||
|
||||
namespace BITKit;
|
||||
/// <summary>
|
||||
/// 使用Godot.Node作为容器的RosClient
|
||||
/// </summary>
|
||||
public partial class ROSClientService : Node
|
||||
{
|
||||
public override void _Ready()
|
||||
{
|
||||
WebSocketNetProtocol protocol = new("ws://");
|
||||
RosSharp.RosBridgeClient.RosSocket client = new(protocol);
|
||||
}
|
||||
}
|
@@ -26,9 +26,12 @@ public partial class RotationComponent : EntityComponent
|
||||
/// 可读可写的当前角度
|
||||
/// </summary>
|
||||
public float CurrentAngle;
|
||||
|
||||
[ExportCategory("Nodes")]
|
||||
[Export] public Node3D node3D;
|
||||
public override void _Ready()
|
||||
{
|
||||
//保存默认角度
|
||||
OriginalEuler = Rotation;
|
||||
OriginalEuler = node3D.RotationDegrees;
|
||||
}
|
||||
}
|
@@ -148,7 +148,7 @@ public partial class SCADAService : Node,IProvider<string>,IActivable
|
||||
euler.X = Mathf.DegToRad(euler.X);
|
||||
euler.Y = Mathf.DegToRad(euler.Y);
|
||||
euler.Z = Mathf.DegToRad(euler.Z);
|
||||
rotationComponent.Rotation = euler;
|
||||
rotationComponent.node3D.Rotation = euler;
|
||||
//rotationComponent.RotationDegrees = euler;
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user