From b38edf590bdd5b359157ea478fa1b298aaf28dd8 Mon Sep 17 00:00:00 2001 From: visose Date: Sat, 1 Jan 2022 18:16:22 +0000 Subject: [PATCH] Remove resources.resx --- .../Assets/{icons => Embed}/iconAngles.png | Bin .../{icons => Embed}/iconArtboard 6.png | Bin .../{icons => Embed}/iconCheckCollisions.png | Bin .../{icons => Embed}/iconCheckProgram.png | Bin .../Assets/{icons => Embed}/iconCollision.png | Bin .../Assets/{icons => Embed}/iconCommand.png | Bin .../{icons => Embed}/iconCommandParam.png | Bin .../{icons => Embed}/iconCreateProgram.png | Bin .../{icons => Embed}/iconCreateTarget.png | Bin .../{icons => Embed}/iconCreateTool.png | Bin .../{icons => Embed}/iconCustomCode.png | Bin .../{icons => Embed}/iconCustomCommand.png | Bin .../iconDeconstructProgramTarget.png | Bin .../iconDeconstructTarget.png | Bin .../Assets/{icons => Embed}/iconFrame.png | Bin .../{icons => Embed}/iconFrameParam.png | Bin .../Assets/{icons => Embed}/iconGetPlane.png | Bin .../{icons => Embed}/iconGroupCommand.png | Bin .../Assets/{icons => Embed}/iconIO.png | Bin .../{icons => Embed}/iconKinematics.png | Bin .../Assets/{icons => Embed}/iconMessage.png | Bin .../Assets/{icons => Embed}/iconOutbox.png | Bin .../{icons => Embed}/iconParamProgram.png | Bin .../Assets/{icons => Embed}/iconPlay.png | Bin .../{icons => Embed}/iconProgramParam.png | Bin .../Assets/{icons => Embed}/iconPulseDO.png | Bin .../Assets/{icons => Embed}/iconRobot.png | Bin .../Assets/{icons => Embed}/iconRobotList.png | Bin .../{icons => Embed}/iconRobotParam.png | Bin .../Assets/{icons => Embed}/iconSave.png | Bin .../Assets/{icons => Embed}/iconSetAO.png | Bin .../Assets/{icons => Embed}/iconSetDO.png | Bin .../{icons => Embed}/iconSimpleTrail.png | Bin .../{icons => Embed}/iconSimulation.png | Bin .../Assets/{icons => Embed}/iconSortPaths.png | Bin .../Assets/{icons => Embed}/iconSpeed.png | Bin .../{icons => Embed}/iconSpeedParam.png | Bin .../{icons => Embed}/iconStopCommand.png | Bin .../{icons => Embed}/iconTargetParam.png | Bin .../Assets/{icons => Embed}/iconToPlane.png | Bin .../Assets/{icons => Embed}/iconTool.png | Bin .../Assets/{icons => Embed}/iconToolParam.png | Bin .../Assets/{icons => Embed}/iconURRemote.png | Bin .../Assets/{icons => Embed}/iconUpload.png | Bin .../Assets/{icons => Embed}/iconWait.png | Bin .../Assets/{icons => Embed}/iconWaitDI.png | Bin .../Assets/{icons => Embed}/iconZoneParam.png | Bin .../Commands/CustomCommand.cs | 2 +- src/Robots.Grasshopper/Commands/Group.cs | 2 +- src/Robots.Grasshopper/Commands/Message.cs | 2 +- src/Robots.Grasshopper/Commands/PulseDO.cs | 2 +- src/Robots.Grasshopper/Commands/SetAO.cs | 2 +- src/Robots.Grasshopper/Commands/SetDO.cs | 2 +- src/Robots.Grasshopper/Commands/Stop.cs | 2 +- src/Robots.Grasshopper/Commands/Wait.cs | 2 +- src/Robots.Grasshopper/Commands/WaitDI.cs | 2 +- src/Robots.Grasshopper/Obsolete.cs | 2 +- .../Parameters/CommandParameter.cs | 2 +- .../Parameters/FrameParameter.cs | 2 +- .../Parameters/ProgramParameter.cs | 2 +- .../Parameters/RobotSystemParameter.cs | 2 +- .../Parameters/SpeedParameter.cs | 2 +- .../Parameters/TargetParameter.cs | 2 +- .../Parameters/ToolParameter.cs | 2 +- .../Parameters/ToolpathParameter.cs | 2 +- .../Parameters/ZoneParameter.cs | 2 +- .../Program/CheckCollisions.cs | 2 +- .../Program/CreateProgram.cs | 2 +- src/Robots.Grasshopper/Program/CustomCode.cs | 2 +- .../Program/DeconstructProgramTargets.cs | 2 +- src/Robots.Grasshopper/Program/Remote.cs | 2 +- src/Robots.Grasshopper/Program/SaveProgram.cs | 2 +- src/Robots.Grasshopper/Program/Simulation.cs | 2 +- .../Properties/Resources.Designer.cs | 523 ------------------ .../Properties/Resources.resx | 259 --------- .../Properties/launchSettings.json | 9 - .../RobotSystem/DegreesToRadians.cs | 2 +- .../RobotSystem/FromPlane.cs | 2 +- .../RobotSystem/GetPlane.cs | 2 +- .../RobotSystem/Kinematics.cs | 2 +- .../RobotSystem/LoadRobotSystem.cs | 2 +- .../RobotSystem/LoadTool.cs | 2 +- .../Robots.Grasshopper.csproj | 25 +- src/Robots.Grasshopper/RobotsInfo.cs | 2 +- src/Robots.Grasshopper/Target/CreateFrame.cs | 2 +- src/Robots.Grasshopper/Target/CreateSpeed.cs | 2 +- src/Robots.Grasshopper/Target/CreateTarget.cs | 5 +- src/Robots.Grasshopper/Target/CreateTool.cs | 2 +- .../Target/DeconstructTarget.cs | 2 +- src/Robots.Grasshopper/Util.cs | 14 + .../Visualization/DrawSimpleTrail.cs | 2 +- src/Robots/Properties/Resources.Designer.cs | 79 --- src/Robots/Properties/Resources.resx | 125 ----- src/Robots/Remotes/URRealTime.cs | 17 +- src/Robots/Remotes/URRealTime.txt | 21 + src/Robots/Robots.csproj | 15 +- 96 files changed, 98 insertions(+), 1070 deletions(-) rename src/Robots.Grasshopper/Assets/{icons => Embed}/iconAngles.png (100%) rename src/Robots.Grasshopper/Assets/{icons => Embed}/iconArtboard 6.png (100%) rename src/Robots.Grasshopper/Assets/{icons => Embed}/iconCheckCollisions.png (100%) rename src/Robots.Grasshopper/Assets/{icons => Embed}/iconCheckProgram.png (100%) rename src/Robots.Grasshopper/Assets/{icons => Embed}/iconCollision.png (100%) rename src/Robots.Grasshopper/Assets/{icons => Embed}/iconCommand.png (100%) rename src/Robots.Grasshopper/Assets/{icons => Embed}/iconCommandParam.png (100%) rename src/Robots.Grasshopper/Assets/{icons => Embed}/iconCreateProgram.png (100%) rename src/Robots.Grasshopper/Assets/{icons => Embed}/iconCreateTarget.png (100%) rename src/Robots.Grasshopper/Assets/{icons => Embed}/iconCreateTool.png (100%) rename src/Robots.Grasshopper/Assets/{icons => Embed}/iconCustomCode.png (100%) rename src/Robots.Grasshopper/Assets/{icons => Embed}/iconCustomCommand.png (100%) rename src/Robots.Grasshopper/Assets/{icons => Embed}/iconDeconstructProgramTarget.png (100%) rename src/Robots.Grasshopper/Assets/{icons => Embed}/iconDeconstructTarget.png (100%) rename src/Robots.Grasshopper/Assets/{icons => Embed}/iconFrame.png (100%) rename src/Robots.Grasshopper/Assets/{icons => Embed}/iconFrameParam.png (100%) rename src/Robots.Grasshopper/Assets/{icons => Embed}/iconGetPlane.png (100%) rename src/Robots.Grasshopper/Assets/{icons => Embed}/iconGroupCommand.png (100%) rename src/Robots.Grasshopper/Assets/{icons => Embed}/iconIO.png (100%) rename src/Robots.Grasshopper/Assets/{icons => Embed}/iconKinematics.png (100%) rename src/Robots.Grasshopper/Assets/{icons => Embed}/iconMessage.png (100%) rename src/Robots.Grasshopper/Assets/{icons => Embed}/iconOutbox.png (100%) rename src/Robots.Grasshopper/Assets/{icons => Embed}/iconParamProgram.png (100%) rename src/Robots.Grasshopper/Assets/{icons => Embed}/iconPlay.png (100%) rename src/Robots.Grasshopper/Assets/{icons => Embed}/iconProgramParam.png (100%) rename src/Robots.Grasshopper/Assets/{icons => Embed}/iconPulseDO.png (100%) rename src/Robots.Grasshopper/Assets/{icons => Embed}/iconRobot.png (100%) rename src/Robots.Grasshopper/Assets/{icons => Embed}/iconRobotList.png (100%) rename src/Robots.Grasshopper/Assets/{icons => Embed}/iconRobotParam.png (100%) rename src/Robots.Grasshopper/Assets/{icons => Embed}/iconSave.png (100%) rename src/Robots.Grasshopper/Assets/{icons => Embed}/iconSetAO.png (100%) rename src/Robots.Grasshopper/Assets/{icons => Embed}/iconSetDO.png (100%) rename src/Robots.Grasshopper/Assets/{icons => Embed}/iconSimpleTrail.png (100%) rename src/Robots.Grasshopper/Assets/{icons => Embed}/iconSimulation.png (100%) rename src/Robots.Grasshopper/Assets/{icons => Embed}/iconSortPaths.png (100%) rename src/Robots.Grasshopper/Assets/{icons => Embed}/iconSpeed.png (100%) rename src/Robots.Grasshopper/Assets/{icons => Embed}/iconSpeedParam.png (100%) rename src/Robots.Grasshopper/Assets/{icons => Embed}/iconStopCommand.png (100%) rename src/Robots.Grasshopper/Assets/{icons => Embed}/iconTargetParam.png (100%) rename src/Robots.Grasshopper/Assets/{icons => Embed}/iconToPlane.png (100%) rename src/Robots.Grasshopper/Assets/{icons => Embed}/iconTool.png (100%) rename src/Robots.Grasshopper/Assets/{icons => Embed}/iconToolParam.png (100%) rename src/Robots.Grasshopper/Assets/{icons => Embed}/iconURRemote.png (100%) rename src/Robots.Grasshopper/Assets/{icons => Embed}/iconUpload.png (100%) rename src/Robots.Grasshopper/Assets/{icons => Embed}/iconWait.png (100%) rename src/Robots.Grasshopper/Assets/{icons => Embed}/iconWaitDI.png (100%) rename src/Robots.Grasshopper/Assets/{icons => Embed}/iconZoneParam.png (100%) delete mode 100644 src/Robots.Grasshopper/Properties/Resources.Designer.cs delete mode 100644 src/Robots.Grasshopper/Properties/Resources.resx delete mode 100644 src/Robots.Grasshopper/Properties/launchSettings.json create mode 100644 src/Robots.Grasshopper/Util.cs delete mode 100644 src/Robots/Properties/Resources.Designer.cs delete mode 100644 src/Robots/Properties/Resources.resx create mode 100644 src/Robots/Remotes/URRealTime.txt diff --git a/src/Robots.Grasshopper/Assets/icons/iconAngles.png b/src/Robots.Grasshopper/Assets/Embed/iconAngles.png similarity index 100% rename from src/Robots.Grasshopper/Assets/icons/iconAngles.png rename to src/Robots.Grasshopper/Assets/Embed/iconAngles.png diff --git a/src/Robots.Grasshopper/Assets/icons/iconArtboard 6.png b/src/Robots.Grasshopper/Assets/Embed/iconArtboard 6.png similarity index 100% rename from src/Robots.Grasshopper/Assets/icons/iconArtboard 6.png rename to src/Robots.Grasshopper/Assets/Embed/iconArtboard 6.png diff --git a/src/Robots.Grasshopper/Assets/icons/iconCheckCollisions.png b/src/Robots.Grasshopper/Assets/Embed/iconCheckCollisions.png similarity index 100% rename from src/Robots.Grasshopper/Assets/icons/iconCheckCollisions.png rename to src/Robots.Grasshopper/Assets/Embed/iconCheckCollisions.png diff --git a/src/Robots.Grasshopper/Assets/icons/iconCheckProgram.png b/src/Robots.Grasshopper/Assets/Embed/iconCheckProgram.png similarity index 100% rename from src/Robots.Grasshopper/Assets/icons/iconCheckProgram.png rename to src/Robots.Grasshopper/Assets/Embed/iconCheckProgram.png diff --git a/src/Robots.Grasshopper/Assets/icons/iconCollision.png b/src/Robots.Grasshopper/Assets/Embed/iconCollision.png similarity index 100% rename from src/Robots.Grasshopper/Assets/icons/iconCollision.png rename to src/Robots.Grasshopper/Assets/Embed/iconCollision.png diff --git a/src/Robots.Grasshopper/Assets/icons/iconCommand.png b/src/Robots.Grasshopper/Assets/Embed/iconCommand.png similarity index 100% rename from src/Robots.Grasshopper/Assets/icons/iconCommand.png rename to src/Robots.Grasshopper/Assets/Embed/iconCommand.png diff --git a/src/Robots.Grasshopper/Assets/icons/iconCommandParam.png b/src/Robots.Grasshopper/Assets/Embed/iconCommandParam.png similarity index 100% rename from src/Robots.Grasshopper/Assets/icons/iconCommandParam.png rename to src/Robots.Grasshopper/Assets/Embed/iconCommandParam.png diff --git a/src/Robots.Grasshopper/Assets/icons/iconCreateProgram.png b/src/Robots.Grasshopper/Assets/Embed/iconCreateProgram.png similarity index 100% rename from src/Robots.Grasshopper/Assets/icons/iconCreateProgram.png rename to src/Robots.Grasshopper/Assets/Embed/iconCreateProgram.png diff --git a/src/Robots.Grasshopper/Assets/icons/iconCreateTarget.png b/src/Robots.Grasshopper/Assets/Embed/iconCreateTarget.png similarity index 100% rename from src/Robots.Grasshopper/Assets/icons/iconCreateTarget.png rename to src/Robots.Grasshopper/Assets/Embed/iconCreateTarget.png diff --git a/src/Robots.Grasshopper/Assets/icons/iconCreateTool.png b/src/Robots.Grasshopper/Assets/Embed/iconCreateTool.png similarity index 100% rename from src/Robots.Grasshopper/Assets/icons/iconCreateTool.png rename to src/Robots.Grasshopper/Assets/Embed/iconCreateTool.png diff --git a/src/Robots.Grasshopper/Assets/icons/iconCustomCode.png b/src/Robots.Grasshopper/Assets/Embed/iconCustomCode.png similarity index 100% rename from src/Robots.Grasshopper/Assets/icons/iconCustomCode.png rename to src/Robots.Grasshopper/Assets/Embed/iconCustomCode.png diff --git a/src/Robots.Grasshopper/Assets/icons/iconCustomCommand.png b/src/Robots.Grasshopper/Assets/Embed/iconCustomCommand.png similarity index 100% rename from src/Robots.Grasshopper/Assets/icons/iconCustomCommand.png rename to src/Robots.Grasshopper/Assets/Embed/iconCustomCommand.png diff --git a/src/Robots.Grasshopper/Assets/icons/iconDeconstructProgramTarget.png b/src/Robots.Grasshopper/Assets/Embed/iconDeconstructProgramTarget.png similarity index 100% rename from src/Robots.Grasshopper/Assets/icons/iconDeconstructProgramTarget.png rename to src/Robots.Grasshopper/Assets/Embed/iconDeconstructProgramTarget.png diff --git a/src/Robots.Grasshopper/Assets/icons/iconDeconstructTarget.png b/src/Robots.Grasshopper/Assets/Embed/iconDeconstructTarget.png similarity index 100% rename from src/Robots.Grasshopper/Assets/icons/iconDeconstructTarget.png rename to src/Robots.Grasshopper/Assets/Embed/iconDeconstructTarget.png diff --git a/src/Robots.Grasshopper/Assets/icons/iconFrame.png b/src/Robots.Grasshopper/Assets/Embed/iconFrame.png similarity index 100% rename from src/Robots.Grasshopper/Assets/icons/iconFrame.png rename to src/Robots.Grasshopper/Assets/Embed/iconFrame.png diff --git a/src/Robots.Grasshopper/Assets/icons/iconFrameParam.png b/src/Robots.Grasshopper/Assets/Embed/iconFrameParam.png similarity index 100% rename from src/Robots.Grasshopper/Assets/icons/iconFrameParam.png rename to src/Robots.Grasshopper/Assets/Embed/iconFrameParam.png diff --git a/src/Robots.Grasshopper/Assets/icons/iconGetPlane.png b/src/Robots.Grasshopper/Assets/Embed/iconGetPlane.png similarity index 100% rename from src/Robots.Grasshopper/Assets/icons/iconGetPlane.png rename to src/Robots.Grasshopper/Assets/Embed/iconGetPlane.png diff --git a/src/Robots.Grasshopper/Assets/icons/iconGroupCommand.png b/src/Robots.Grasshopper/Assets/Embed/iconGroupCommand.png similarity index 100% rename from src/Robots.Grasshopper/Assets/icons/iconGroupCommand.png rename to src/Robots.Grasshopper/Assets/Embed/iconGroupCommand.png diff --git a/src/Robots.Grasshopper/Assets/icons/iconIO.png b/src/Robots.Grasshopper/Assets/Embed/iconIO.png similarity index 100% rename from src/Robots.Grasshopper/Assets/icons/iconIO.png rename to src/Robots.Grasshopper/Assets/Embed/iconIO.png diff --git a/src/Robots.Grasshopper/Assets/icons/iconKinematics.png b/src/Robots.Grasshopper/Assets/Embed/iconKinematics.png similarity index 100% rename from src/Robots.Grasshopper/Assets/icons/iconKinematics.png rename to src/Robots.Grasshopper/Assets/Embed/iconKinematics.png diff --git a/src/Robots.Grasshopper/Assets/icons/iconMessage.png b/src/Robots.Grasshopper/Assets/Embed/iconMessage.png similarity index 100% rename from src/Robots.Grasshopper/Assets/icons/iconMessage.png rename to src/Robots.Grasshopper/Assets/Embed/iconMessage.png diff --git a/src/Robots.Grasshopper/Assets/icons/iconOutbox.png b/src/Robots.Grasshopper/Assets/Embed/iconOutbox.png similarity index 100% rename from src/Robots.Grasshopper/Assets/icons/iconOutbox.png rename to src/Robots.Grasshopper/Assets/Embed/iconOutbox.png diff --git a/src/Robots.Grasshopper/Assets/icons/iconParamProgram.png b/src/Robots.Grasshopper/Assets/Embed/iconParamProgram.png similarity index 100% rename from src/Robots.Grasshopper/Assets/icons/iconParamProgram.png rename to src/Robots.Grasshopper/Assets/Embed/iconParamProgram.png diff --git a/src/Robots.Grasshopper/Assets/icons/iconPlay.png b/src/Robots.Grasshopper/Assets/Embed/iconPlay.png similarity index 100% rename from src/Robots.Grasshopper/Assets/icons/iconPlay.png rename to src/Robots.Grasshopper/Assets/Embed/iconPlay.png diff --git a/src/Robots.Grasshopper/Assets/icons/iconProgramParam.png b/src/Robots.Grasshopper/Assets/Embed/iconProgramParam.png similarity index 100% rename from src/Robots.Grasshopper/Assets/icons/iconProgramParam.png rename to src/Robots.Grasshopper/Assets/Embed/iconProgramParam.png diff --git a/src/Robots.Grasshopper/Assets/icons/iconPulseDO.png b/src/Robots.Grasshopper/Assets/Embed/iconPulseDO.png similarity index 100% rename from src/Robots.Grasshopper/Assets/icons/iconPulseDO.png rename to src/Robots.Grasshopper/Assets/Embed/iconPulseDO.png diff --git a/src/Robots.Grasshopper/Assets/icons/iconRobot.png b/src/Robots.Grasshopper/Assets/Embed/iconRobot.png similarity index 100% rename from src/Robots.Grasshopper/Assets/icons/iconRobot.png rename to src/Robots.Grasshopper/Assets/Embed/iconRobot.png diff --git a/src/Robots.Grasshopper/Assets/icons/iconRobotList.png b/src/Robots.Grasshopper/Assets/Embed/iconRobotList.png similarity index 100% rename from src/Robots.Grasshopper/Assets/icons/iconRobotList.png rename to src/Robots.Grasshopper/Assets/Embed/iconRobotList.png diff --git a/src/Robots.Grasshopper/Assets/icons/iconRobotParam.png b/src/Robots.Grasshopper/Assets/Embed/iconRobotParam.png similarity index 100% rename from src/Robots.Grasshopper/Assets/icons/iconRobotParam.png rename to src/Robots.Grasshopper/Assets/Embed/iconRobotParam.png diff --git a/src/Robots.Grasshopper/Assets/icons/iconSave.png b/src/Robots.Grasshopper/Assets/Embed/iconSave.png similarity index 100% rename from src/Robots.Grasshopper/Assets/icons/iconSave.png rename to src/Robots.Grasshopper/Assets/Embed/iconSave.png diff --git a/src/Robots.Grasshopper/Assets/icons/iconSetAO.png b/src/Robots.Grasshopper/Assets/Embed/iconSetAO.png similarity index 100% rename from src/Robots.Grasshopper/Assets/icons/iconSetAO.png rename to src/Robots.Grasshopper/Assets/Embed/iconSetAO.png diff --git a/src/Robots.Grasshopper/Assets/icons/iconSetDO.png b/src/Robots.Grasshopper/Assets/Embed/iconSetDO.png similarity index 100% rename from src/Robots.Grasshopper/Assets/icons/iconSetDO.png rename to src/Robots.Grasshopper/Assets/Embed/iconSetDO.png diff --git a/src/Robots.Grasshopper/Assets/icons/iconSimpleTrail.png b/src/Robots.Grasshopper/Assets/Embed/iconSimpleTrail.png similarity index 100% rename from src/Robots.Grasshopper/Assets/icons/iconSimpleTrail.png rename to src/Robots.Grasshopper/Assets/Embed/iconSimpleTrail.png diff --git a/src/Robots.Grasshopper/Assets/icons/iconSimulation.png b/src/Robots.Grasshopper/Assets/Embed/iconSimulation.png similarity index 100% rename from src/Robots.Grasshopper/Assets/icons/iconSimulation.png rename to src/Robots.Grasshopper/Assets/Embed/iconSimulation.png diff --git a/src/Robots.Grasshopper/Assets/icons/iconSortPaths.png b/src/Robots.Grasshopper/Assets/Embed/iconSortPaths.png similarity index 100% rename from src/Robots.Grasshopper/Assets/icons/iconSortPaths.png rename to src/Robots.Grasshopper/Assets/Embed/iconSortPaths.png diff --git a/src/Robots.Grasshopper/Assets/icons/iconSpeed.png b/src/Robots.Grasshopper/Assets/Embed/iconSpeed.png similarity index 100% rename from src/Robots.Grasshopper/Assets/icons/iconSpeed.png rename to src/Robots.Grasshopper/Assets/Embed/iconSpeed.png diff --git a/src/Robots.Grasshopper/Assets/icons/iconSpeedParam.png b/src/Robots.Grasshopper/Assets/Embed/iconSpeedParam.png similarity index 100% rename from src/Robots.Grasshopper/Assets/icons/iconSpeedParam.png rename to src/Robots.Grasshopper/Assets/Embed/iconSpeedParam.png diff --git a/src/Robots.Grasshopper/Assets/icons/iconStopCommand.png b/src/Robots.Grasshopper/Assets/Embed/iconStopCommand.png similarity index 100% rename from src/Robots.Grasshopper/Assets/icons/iconStopCommand.png rename to src/Robots.Grasshopper/Assets/Embed/iconStopCommand.png diff --git a/src/Robots.Grasshopper/Assets/icons/iconTargetParam.png b/src/Robots.Grasshopper/Assets/Embed/iconTargetParam.png similarity index 100% rename from src/Robots.Grasshopper/Assets/icons/iconTargetParam.png rename to src/Robots.Grasshopper/Assets/Embed/iconTargetParam.png diff --git a/src/Robots.Grasshopper/Assets/icons/iconToPlane.png b/src/Robots.Grasshopper/Assets/Embed/iconToPlane.png similarity index 100% rename from src/Robots.Grasshopper/Assets/icons/iconToPlane.png rename to src/Robots.Grasshopper/Assets/Embed/iconToPlane.png diff --git a/src/Robots.Grasshopper/Assets/icons/iconTool.png b/src/Robots.Grasshopper/Assets/Embed/iconTool.png similarity index 100% rename from src/Robots.Grasshopper/Assets/icons/iconTool.png rename to src/Robots.Grasshopper/Assets/Embed/iconTool.png diff --git a/src/Robots.Grasshopper/Assets/icons/iconToolParam.png b/src/Robots.Grasshopper/Assets/Embed/iconToolParam.png similarity index 100% rename from src/Robots.Grasshopper/Assets/icons/iconToolParam.png rename to src/Robots.Grasshopper/Assets/Embed/iconToolParam.png diff --git a/src/Robots.Grasshopper/Assets/icons/iconURRemote.png b/src/Robots.Grasshopper/Assets/Embed/iconURRemote.png similarity index 100% rename from src/Robots.Grasshopper/Assets/icons/iconURRemote.png rename to src/Robots.Grasshopper/Assets/Embed/iconURRemote.png diff --git a/src/Robots.Grasshopper/Assets/icons/iconUpload.png b/src/Robots.Grasshopper/Assets/Embed/iconUpload.png similarity index 100% rename from src/Robots.Grasshopper/Assets/icons/iconUpload.png rename to src/Robots.Grasshopper/Assets/Embed/iconUpload.png diff --git a/src/Robots.Grasshopper/Assets/icons/iconWait.png b/src/Robots.Grasshopper/Assets/Embed/iconWait.png similarity index 100% rename from src/Robots.Grasshopper/Assets/icons/iconWait.png rename to src/Robots.Grasshopper/Assets/Embed/iconWait.png diff --git a/src/Robots.Grasshopper/Assets/icons/iconWaitDI.png b/src/Robots.Grasshopper/Assets/Embed/iconWaitDI.png similarity index 100% rename from src/Robots.Grasshopper/Assets/icons/iconWaitDI.png rename to src/Robots.Grasshopper/Assets/Embed/iconWaitDI.png diff --git a/src/Robots.Grasshopper/Assets/icons/iconZoneParam.png b/src/Robots.Grasshopper/Assets/Embed/iconZoneParam.png similarity index 100% rename from src/Robots.Grasshopper/Assets/icons/iconZoneParam.png rename to src/Robots.Grasshopper/Assets/Embed/iconZoneParam.png diff --git a/src/Robots.Grasshopper/Commands/CustomCommand.cs b/src/Robots.Grasshopper/Commands/CustomCommand.cs index 50e2fa2..a4b0638 100644 --- a/src/Robots.Grasshopper/Commands/CustomCommand.cs +++ b/src/Robots.Grasshopper/Commands/CustomCommand.cs @@ -7,7 +7,7 @@ public class CustomCommand : GH_Component public CustomCommand() : base("Custom command", "CustomCmd", "Custom command written in the manufacturer specific language", "Robots", "Commands") { } public override GH_Exposure Exposure => GH_Exposure.primary; public override Guid ComponentGuid => new("{713A6DF0-6C73-477F-8CA5-2FE18F3DE7C4}"); - protected override System.Drawing.Bitmap Icon => Properties.Resources.iconCustomCommand; + protected override System.Drawing.Bitmap Icon => Util.GetIcon("iconCustomCommand"); protected override void RegisterInputParams(GH_InputParamManager pManager) { diff --git a/src/Robots.Grasshopper/Commands/Group.cs b/src/Robots.Grasshopper/Commands/Group.cs index c0b3206..c74269a 100644 --- a/src/Robots.Grasshopper/Commands/Group.cs +++ b/src/Robots.Grasshopper/Commands/Group.cs @@ -7,7 +7,7 @@ public class Group : GH_Component public Group() : base("Group command", "GroupCmd", "Group of commands", "Robots", "Commands") { } public override GH_Exposure Exposure => GH_Exposure.primary; public override Guid ComponentGuid => new("{17485955-818B-4D0E-9986-26264E1F86DC}"); - protected override System.Drawing.Bitmap Icon => Properties.Resources.iconGroupCommand; + protected override System.Drawing.Bitmap Icon => Util.GetIcon("iconGroupCommand"); protected override void RegisterInputParams(GH_InputParamManager pManager) { diff --git a/src/Robots.Grasshopper/Commands/Message.cs b/src/Robots.Grasshopper/Commands/Message.cs index 280b9be..fbef303 100644 --- a/src/Robots.Grasshopper/Commands/Message.cs +++ b/src/Robots.Grasshopper/Commands/Message.cs @@ -7,7 +7,7 @@ public class Message : GH_Component public Message() : base("Message", "Message", "Sends a text message to the teach pendant", "Robots", "Commands") { } public override GH_Exposure Exposure => GH_Exposure.secondary; public override Guid ComponentGuid => new("{CFAABB24-CAEE-49FC-850F-BE9F70F070CA}"); - protected override System.Drawing.Bitmap Icon => Properties.Resources.iconMessage; + protected override System.Drawing.Bitmap Icon => Util.GetIcon("iconMessage"); protected override void RegisterInputParams(GH_InputParamManager pManager) { diff --git a/src/Robots.Grasshopper/Commands/PulseDO.cs b/src/Robots.Grasshopper/Commands/PulseDO.cs index 7606665..3dc946e 100644 --- a/src/Robots.Grasshopper/Commands/PulseDO.cs +++ b/src/Robots.Grasshopper/Commands/PulseDO.cs @@ -7,7 +7,7 @@ public class PulseDO : GH_Component public PulseDO() : base("Pulse DO", "PulseDO", "Send a pulse to a digital output", "Robots", "Commands") { } public override GH_Exposure Exposure => GH_Exposure.secondary; public override Guid ComponentGuid => new("{3CBDCD59-9621-4A0F-86BF-F4CC876E360D}"); - protected override System.Drawing.Bitmap Icon => Properties.Resources.iconPulseDO; + protected override System.Drawing.Bitmap Icon => Util.GetIcon("iconPulseDO"); protected override void RegisterInputParams(GH_InputParamManager pManager) { diff --git a/src/Robots.Grasshopper/Commands/SetAO.cs b/src/Robots.Grasshopper/Commands/SetAO.cs index 9b99212..67aa6e0 100644 --- a/src/Robots.Grasshopper/Commands/SetAO.cs +++ b/src/Robots.Grasshopper/Commands/SetAO.cs @@ -7,7 +7,7 @@ public class SetAO : GH_Component public SetAO() : base("Set AO", "SetAO", "Set analog output", "Robots", "Commands") { } public override GH_Exposure Exposure => GH_Exposure.secondary; public override Guid ComponentGuid => new("{CAA1A764-D588-4D63-95EA-9C8D43374B8D}"); - protected override System.Drawing.Bitmap Icon => Properties.Resources.iconSetAO; + protected override System.Drawing.Bitmap Icon => Util.GetIcon("iconSetAO"); protected override void RegisterInputParams(GH_InputParamManager pManager) { diff --git a/src/Robots.Grasshopper/Commands/SetDO.cs b/src/Robots.Grasshopper/Commands/SetDO.cs index 737d748..1fe9626 100644 --- a/src/Robots.Grasshopper/Commands/SetDO.cs +++ b/src/Robots.Grasshopper/Commands/SetDO.cs @@ -7,7 +7,7 @@ public class SetDO : GH_Component public SetDO() : base("Set DO", "SetDO", "Set digital output", "Robots", "Commands") { } public override GH_Exposure Exposure => GH_Exposure.secondary; public override Guid ComponentGuid => new("{C2F263E3-BF97-4E48-B2CB-42D3A5FE6190}"); - protected override System.Drawing.Bitmap Icon => Properties.Resources.iconSetDO; + protected override System.Drawing.Bitmap Icon => Util.GetIcon("iconSetDO"); protected override void RegisterInputParams(GH_InputParamManager pManager) { diff --git a/src/Robots.Grasshopper/Commands/Stop.cs b/src/Robots.Grasshopper/Commands/Stop.cs index 387837b..8e00d77 100644 --- a/src/Robots.Grasshopper/Commands/Stop.cs +++ b/src/Robots.Grasshopper/Commands/Stop.cs @@ -7,7 +7,7 @@ public class Stop : GH_Component public Stop() : base("Stop program", "Stop", "Stops the program until an operator starts it again", "Robots", "Commands") { } public override GH_Exposure Exposure => GH_Exposure.secondary; public override Guid ComponentGuid => new("{80E4E1AD-D1C0-441F-BDC5-5E810BCECE61}"); - protected override System.Drawing.Bitmap Icon => Properties.Resources.iconStopCommand; + protected override System.Drawing.Bitmap Icon => Util.GetIcon("iconStopCommand"); protected override void RegisterInputParams(GH_InputParamManager pManager) { diff --git a/src/Robots.Grasshopper/Commands/Wait.cs b/src/Robots.Grasshopper/Commands/Wait.cs index bfaf36e..eb7b311 100644 --- a/src/Robots.Grasshopper/Commands/Wait.cs +++ b/src/Robots.Grasshopper/Commands/Wait.cs @@ -7,7 +7,7 @@ public class Wait : GH_Component public Wait() : base("Wait", "Wait", "Stops the program for a specific amount of time", "Robots", "Commands") { } public override GH_Exposure Exposure => GH_Exposure.secondary; public override Guid ComponentGuid => new("{5E7BA355-7EAC-4A5D-B736-286043AB0A45}"); - protected override System.Drawing.Bitmap Icon => Properties.Resources.iconWait; + protected override System.Drawing.Bitmap Icon => Util.GetIcon("iconWait"); protected override void RegisterInputParams(GH_InputParamManager pManager) { diff --git a/src/Robots.Grasshopper/Commands/WaitDI.cs b/src/Robots.Grasshopper/Commands/WaitDI.cs index f0597bb..d993875 100644 --- a/src/Robots.Grasshopper/Commands/WaitDI.cs +++ b/src/Robots.Grasshopper/Commands/WaitDI.cs @@ -7,7 +7,7 @@ public class WaitDI : GH_Component public WaitDI() : base("Wait DI", "WaitDI", "Stops the program until a digital input is turned on", "Robots", "Commands") { } public override GH_Exposure Exposure => GH_Exposure.secondary; public override Guid ComponentGuid => new("{8A930C8F-3BCE-4476-9E30-3F5C23DB2FB9}"); - protected override System.Drawing.Bitmap Icon => Properties.Resources.iconWaitDI; + protected override System.Drawing.Bitmap Icon => Util.GetIcon("iconWaitDI"); protected override void RegisterInputParams(GH_InputParamManager pManager) { diff --git a/src/Robots.Grasshopper/Obsolete.cs b/src/Robots.Grasshopper/Obsolete.cs index c6cd448..0517621 100644 --- a/src/Robots.Grasshopper/Obsolete.cs +++ b/src/Robots.Grasshopper/Obsolete.cs @@ -9,7 +9,7 @@ public Custom() : base(" command", "CustomCmd", "Custom command written in the m public override GH_Exposure Exposure => GH_Exposure.hidden; public override bool Obsolete => true; public override Guid ComponentGuid => new("{D15B1F9D-B3B9-4105-A365-234C1329B092}"); - protected override System.Drawing.Bitmap Icon => Properties.Resources.iconCustomCommand; + protected override System.Drawing.Bitmap Icon => Util.GetIcon("iconCustomCommand"); protected override void RegisterInputParams(GH_InputParamManager pManager) { diff --git a/src/Robots.Grasshopper/Parameters/CommandParameter.cs b/src/Robots.Grasshopper/Parameters/CommandParameter.cs index c01c43f..ec5318c 100644 --- a/src/Robots.Grasshopper/Parameters/CommandParameter.cs +++ b/src/Robots.Grasshopper/Parameters/CommandParameter.cs @@ -6,7 +6,7 @@ public class CommandParameter : GH_PersistentParam { public CommandParameter() : base("Command parameter", "Command", "This is a robot command", "Robots", "Parameters") { } public override GH_Exposure Exposure => GH_Exposure.tertiary; - protected override System.Drawing.Bitmap Icon => Properties.Resources.iconCommandParam; + protected override System.Drawing.Bitmap Icon => Util.GetIcon("iconCommandParam"); public override Guid ComponentGuid => new("{F5865990-90F3-4736-9AFF-4DD9ECEDA799}"); protected override GH_GetterResult Prompt_Singular(ref GH_Command value) diff --git a/src/Robots.Grasshopper/Parameters/FrameParameter.cs b/src/Robots.Grasshopper/Parameters/FrameParameter.cs index c2fe9b2..0a9e2ab 100644 --- a/src/Robots.Grasshopper/Parameters/FrameParameter.cs +++ b/src/Robots.Grasshopper/Parameters/FrameParameter.cs @@ -6,7 +6,7 @@ public class FrameParameter : GH_PersistentParam { public FrameParameter() : base("Frame parameter", "Frame", "This is a robot frame", "Robots", "Parameters") { } public override GH_Exposure Exposure => GH_Exposure.tertiary; - protected override System.Drawing.Bitmap Icon => Properties.Resources.iconFrameParam; + protected override System.Drawing.Bitmap Icon => Util.GetIcon("iconFrameParam"); public override Guid ComponentGuid => new("{6A012ECB-D161-4F93-BB60-D03391DF1A7C}"); protected override GH_GetterResult Prompt_Singular(ref GH_Frame value) diff --git a/src/Robots.Grasshopper/Parameters/ProgramParameter.cs b/src/Robots.Grasshopper/Parameters/ProgramParameter.cs index bd6e275..c78c65f 100644 --- a/src/Robots.Grasshopper/Parameters/ProgramParameter.cs +++ b/src/Robots.Grasshopper/Parameters/ProgramParameter.cs @@ -6,6 +6,6 @@ public class ProgramParameter : GH_Param { public ProgramParameter() : base("Program parameter", "Program", "This is a robot program", "Robots", "Parameters", GH_ParamAccess.item) { } public override GH_Exposure Exposure => GH_Exposure.quarternary; - protected override System.Drawing.Bitmap Icon => Properties.Resources.iconProgramParam; + protected override System.Drawing.Bitmap Icon => Util.GetIcon("iconProgramParam"); public override Guid ComponentGuid => new("{9C4F1BB6-5FA2-44DA-B7EA-421AF31DA054}"); } \ No newline at end of file diff --git a/src/Robots.Grasshopper/Parameters/RobotSystemParameter.cs b/src/Robots.Grasshopper/Parameters/RobotSystemParameter.cs index 64155f0..b07fae9 100644 --- a/src/Robots.Grasshopper/Parameters/RobotSystemParameter.cs +++ b/src/Robots.Grasshopper/Parameters/RobotSystemParameter.cs @@ -7,7 +7,7 @@ public class RobotSystemParameter : GH_Param, IGH_PreviewObject { public RobotSystemParameter() : base("RobotSystem parameter", "RobotSystem", "This is a robot system", "Robots", "Parameters", GH_ParamAccess.item) { } public override GH_Exposure Exposure => GH_Exposure.primary; - protected override System.Drawing.Bitmap Icon => Properties.Resources.iconRobotParam; + protected override System.Drawing.Bitmap Icon => Util.GetIcon("iconRobotParam"); public override Guid ComponentGuid => new("{3DBDF573-248C-44B5-8D46-184657A56BCB}"); public bool Hidden { get; set; } public bool IsPreviewCapable => true; diff --git a/src/Robots.Grasshopper/Parameters/SpeedParameter.cs b/src/Robots.Grasshopper/Parameters/SpeedParameter.cs index 8ce0356..da24c2b 100644 --- a/src/Robots.Grasshopper/Parameters/SpeedParameter.cs +++ b/src/Robots.Grasshopper/Parameters/SpeedParameter.cs @@ -6,7 +6,7 @@ public class SpeedParameter : GH_PersistentParam { public SpeedParameter() : base("Speed parameter", "Speed", "This is a robot speed", "Robots", "Parameters") { } public override GH_Exposure Exposure => GH_Exposure.tertiary; - protected override System.Drawing.Bitmap Icon => Properties.Resources.iconSpeedParam; + protected override System.Drawing.Bitmap Icon => Util.GetIcon("iconSpeedParam"); public override Guid ComponentGuid => new("{0B329813-13A0-48C4-B89A-65F289A4FF28}"); protected override GH_GetterResult Prompt_Singular(ref GH_Speed value) diff --git a/src/Robots.Grasshopper/Parameters/TargetParameter.cs b/src/Robots.Grasshopper/Parameters/TargetParameter.cs index fd759ac..fd1de59 100644 --- a/src/Robots.Grasshopper/Parameters/TargetParameter.cs +++ b/src/Robots.Grasshopper/Parameters/TargetParameter.cs @@ -6,7 +6,7 @@ public class TargetParameter : GH_PersistentParam { public TargetParameter() : base("Target parameter", "Target", "This is a robot target", "Robots", "Parameters") { } public override GH_Exposure Exposure => GH_Exposure.secondary; - protected override System.Drawing.Bitmap Icon => Properties.Resources.iconTargetParam; + protected override System.Drawing.Bitmap Icon => Util.GetIcon("iconTargetParam"); public override Guid ComponentGuid => new("{BEB590A9-905E-42ED-AB08-3E999EA94553}"); protected override GH_GetterResult Prompt_Singular(ref GH_Target value) diff --git a/src/Robots.Grasshopper/Parameters/ToolParameter.cs b/src/Robots.Grasshopper/Parameters/ToolParameter.cs index 078cccf..948857d 100644 --- a/src/Robots.Grasshopper/Parameters/ToolParameter.cs +++ b/src/Robots.Grasshopper/Parameters/ToolParameter.cs @@ -6,7 +6,7 @@ public class ToolParameter : GH_PersistentParam { public ToolParameter() : base("Tool parameter", "Tool", "This is a robot tool", "Robots", "Parameters") { } public override GH_Exposure Exposure => GH_Exposure.tertiary; - protected override System.Drawing.Bitmap Icon => Properties.Resources.iconToolParam; + protected override System.Drawing.Bitmap Icon => Util.GetIcon("iconToolParam"); public override Guid ComponentGuid => new("{073A02A6-2166-4387-9482-2EE3282E9209}"); protected override GH_GetterResult Prompt_Singular(ref GH_Tool value) diff --git a/src/Robots.Grasshopper/Parameters/ToolpathParameter.cs b/src/Robots.Grasshopper/Parameters/ToolpathParameter.cs index a2a4ab2..7961d29 100644 --- a/src/Robots.Grasshopper/Parameters/ToolpathParameter.cs +++ b/src/Robots.Grasshopper/Parameters/ToolpathParameter.cs @@ -6,7 +6,7 @@ public class ToolpathParameter : GH_PersistentParam { public ToolpathParameter() : base("Toolpath", "Toolpath", "This is a robot toolpath", "Robots", "Parameters") { } public override GH_Exposure Exposure => GH_Exposure.secondary; - protected override System.Drawing.Bitmap Icon => Properties.Resources.iconProgramParam; + protected override System.Drawing.Bitmap Icon => Util.GetIcon("iconProgramParam"); public override Guid ComponentGuid => new("{715AEDCE-14E8-400B-A226-9806FC3CB7B3}"); protected override GH_GetterResult Prompt_Singular(ref GH_Toolpath value) diff --git a/src/Robots.Grasshopper/Parameters/ZoneParameter.cs b/src/Robots.Grasshopper/Parameters/ZoneParameter.cs index 6f1e6de..b72a859 100644 --- a/src/Robots.Grasshopper/Parameters/ZoneParameter.cs +++ b/src/Robots.Grasshopper/Parameters/ZoneParameter.cs @@ -6,7 +6,7 @@ public class ZoneParameter : GH_PersistentParam { public ZoneParameter() : base("Zone parameter", "Zone", "This is a robot approximation zone", "Robots", "Parameters") { } public override GH_Exposure Exposure => GH_Exposure.tertiary; - protected override System.Drawing.Bitmap Icon => Properties.Resources.iconZoneParam; + protected override System.Drawing.Bitmap Icon => Util.GetIcon("iconZoneParam"); public override Guid ComponentGuid => new("{458855D3-F671-4A50-BDA1-6AD3B7A5EC70}"); protected override GH_GetterResult Prompt_Singular(ref GH_Zone value) diff --git a/src/Robots.Grasshopper/Program/CheckCollisions.cs b/src/Robots.Grasshopper/Program/CheckCollisions.cs index 3d24754..32b09d4 100644 --- a/src/Robots.Grasshopper/Program/CheckCollisions.cs +++ b/src/Robots.Grasshopper/Program/CheckCollisions.cs @@ -9,7 +9,7 @@ public class CheckCollisions : GH_Component public CheckCollisions() : base("Check collisions", "Collisions", "Checks for possible collisions. Will test if any object from group A collide with any objects from group B.", "Robots", "Components") { } public override GH_Exposure Exposure => GH_Exposure.quarternary; public override Guid ComponentGuid => new("{2848F557-8DF4-415A-800B-261E782E92F8}"); - protected override System.Drawing.Bitmap Icon => Properties.Resources.iconCheckCollisions; + protected override System.Drawing.Bitmap Icon => Util.GetIcon("iconCheckCollisions"); protected override void RegisterInputParams(GH_InputParamManager pManager) { diff --git a/src/Robots.Grasshopper/Program/CreateProgram.cs b/src/Robots.Grasshopper/Program/CreateProgram.cs index 3cfba06..6c7527c 100644 --- a/src/Robots.Grasshopper/Program/CreateProgram.cs +++ b/src/Robots.Grasshopper/Program/CreateProgram.cs @@ -9,7 +9,7 @@ public class CreateProgram : GH_Component public CreateProgram() : base("Create program", "Program", "Creates a program, checks for possible issues and fixes common mistakes", "Robots", "Components") { } public override GH_Exposure Exposure => GH_Exposure.quarternary; public override Guid ComponentGuid => new("{5186EFD5-C042-4CA9-A7D2-E143F4848DEF}"); - protected override System.Drawing.Bitmap Icon => Properties.Resources.iconCreateProgram; + protected override System.Drawing.Bitmap Icon => Util.GetIcon("iconCreateProgram"); protected override void RegisterInputParams(GH_InputParamManager pManager) { diff --git a/src/Robots.Grasshopper/Program/CustomCode.cs b/src/Robots.Grasshopper/Program/CustomCode.cs index 35db935..cff0cac 100644 --- a/src/Robots.Grasshopper/Program/CustomCode.cs +++ b/src/Robots.Grasshopper/Program/CustomCode.cs @@ -9,7 +9,7 @@ public class CustomCode : GH_Component public CustomCode() : base("Custom code", "Custom", "Creates a program using manufacturer specific custom code. This program cannot be simulated", "Robots", "Components") { } public override GH_Exposure Exposure => GH_Exposure.quarternary; public override Guid ComponentGuid => new("{FF997511-4A84-4426-AB62-AF94D19FF58F}"); - protected override System.Drawing.Bitmap Icon => Properties.Resources.iconCustomCode; + protected override System.Drawing.Bitmap Icon => Util.GetIcon("iconCustomCode"); protected override void RegisterInputParams(GH_InputParamManager pManager) { diff --git a/src/Robots.Grasshopper/Program/DeconstructProgramTargets.cs b/src/Robots.Grasshopper/Program/DeconstructProgramTargets.cs index d354118..40fbeec 100644 --- a/src/Robots.Grasshopper/Program/DeconstructProgramTargets.cs +++ b/src/Robots.Grasshopper/Program/DeconstructProgramTargets.cs @@ -10,7 +10,7 @@ public class DeconstructProgramTargets : GH_Component public DeconstructProgramTargets() : base("Deconstruct program targets", "DecProgTarg", "Exposes the calculated simulation data for all targets.", "Robots", "Util") { } public override GH_Exposure Exposure => GH_Exposure.secondary; public override Guid ComponentGuid => new("{B78BF8E5-D5F2-4DE6-8589-26E069BA3D5B}"); - protected override Bitmap Icon => Properties.Resources.iconDeconstructProgramTarget; + protected override Bitmap Icon => Util.GetIcon("iconDeconstructProgramTarget"); protected override void RegisterInputParams(GH_InputParamManager pManager) { diff --git a/src/Robots.Grasshopper/Program/Remote.cs b/src/Robots.Grasshopper/Program/Remote.cs index 370c3a7..3ba6f3a 100644 --- a/src/Robots.Grasshopper/Program/Remote.cs +++ b/src/Robots.Grasshopper/Program/Remote.cs @@ -8,7 +8,7 @@ public class Remote : GH_Component public Remote() : base("Remote connection", "Remote", "Upload and run programs to UR or ABB controllers through a network. For ABB controllers you must install the 'ABB Robot Communication Runtime'.", "Robots", "Components") { } public override GH_Exposure Exposure => GH_Exposure.senary; public override Guid ComponentGuid => new("{19A5E3A3-E2BC-4798-8C54-13873FD2973A}"); - protected override System.Drawing.Bitmap Icon => Properties.Resources.iconURRemote; + protected override System.Drawing.Bitmap Icon => Util.GetIcon("iconURRemote"); protected override void RegisterInputParams(GH_InputParamManager pManager) { diff --git a/src/Robots.Grasshopper/Program/SaveProgram.cs b/src/Robots.Grasshopper/Program/SaveProgram.cs index be05ff3..4b9f8f3 100644 --- a/src/Robots.Grasshopper/Program/SaveProgram.cs +++ b/src/Robots.Grasshopper/Program/SaveProgram.cs @@ -7,7 +7,7 @@ public class SaveProgram : GH_Component public SaveProgram() : base("Save program", "SaveProg", "Saves a program to a text file", "Robots", "Components") { } public override GH_Exposure Exposure => GH_Exposure.senary; public override Guid ComponentGuid => new("{1DE69EAA-AA4C-44F2-8748-F19B041F8F58}"); - protected override System.Drawing.Bitmap Icon => Properties.Resources.iconSave; + protected override System.Drawing.Bitmap Icon => Util.GetIcon("iconSave"); protected override void RegisterInputParams(GH_InputParamManager pManager) { diff --git a/src/Robots.Grasshopper/Program/Simulation.cs b/src/Robots.Grasshopper/Program/Simulation.cs index 77ccd09..2559a41 100644 --- a/src/Robots.Grasshopper/Program/Simulation.cs +++ b/src/Robots.Grasshopper/Program/Simulation.cs @@ -24,7 +24,7 @@ public sealed class Simulation : GH_Component, IDisposable public override GH_Exposure Exposure => GH_Exposure.quinary; public override Guid ComponentGuid => new("{6CE35140-A625-4686-B8B3-B734D9A36CFC}"); - protected override System.Drawing.Bitmap Icon => Properties.Resources.iconSimulation; + protected override System.Drawing.Bitmap Icon => Util.GetIcon("iconSimulation"); protected override void RegisterInputParams(GH_InputParamManager pManager) { diff --git a/src/Robots.Grasshopper/Properties/Resources.Designer.cs b/src/Robots.Grasshopper/Properties/Resources.Designer.cs deleted file mode 100644 index 80e97ef..0000000 --- a/src/Robots.Grasshopper/Properties/Resources.Designer.cs +++ /dev/null @@ -1,523 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Runtime Version:4.0.30319.42000 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace Robots.Grasshopper.Properties { - using System; - - - /// - /// A strongly-typed resource class, for looking up localized strings, etc. - /// - // This class was auto-generated by the StronglyTypedResourceBuilder - // class via a tool like ResGen or Visual Studio. - // To add or remove a member, edit your .ResX file then rerun ResGen - // with the /str option, or rebuild your VS project. - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] - internal class Resources { - - private static global::System.Resources.ResourceManager resourceMan; - - private static global::System.Globalization.CultureInfo resourceCulture; - - [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] - internal Resources() { - } - - /// - /// Returns the cached ResourceManager instance used by this class. - /// - [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - internal static global::System.Resources.ResourceManager ResourceManager { - get { - if (object.ReferenceEquals(resourceMan, null)) { - global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Robots.Grasshopper.Properties.Resources", typeof(Resources).Assembly); - resourceMan = temp; - } - return resourceMan; - } - } - - /// - /// Overrides the current thread's CurrentUICulture property for all - /// resource lookups using this strongly typed resource class. - /// - [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - internal static global::System.Globalization.CultureInfo Culture { - get { - return resourceCulture; - } - set { - resourceCulture = value; - } - } - - /// - /// Looks up a localized resource of type System.Drawing.Bitmap. - /// - internal static System.Drawing.Bitmap iconAngles { - get { - object obj = ResourceManager.GetObject("iconAngles", resourceCulture); - return ((System.Drawing.Bitmap)(obj)); - } - } - - /// - /// Looks up a localized resource of type System.Drawing.Bitmap. - /// - internal static System.Drawing.Bitmap iconCheckCollisions { - get { - object obj = ResourceManager.GetObject("iconCheckCollisions", resourceCulture); - return ((System.Drawing.Bitmap)(obj)); - } - } - - /// - /// Looks up a localized resource of type System.Drawing.Bitmap. - /// - internal static System.Drawing.Bitmap iconCheckProgram { - get { - object obj = ResourceManager.GetObject("iconCheckProgram", resourceCulture); - return ((System.Drawing.Bitmap)(obj)); - } - } - - /// - /// Looks up a localized resource of type System.Drawing.Bitmap. - /// - internal static System.Drawing.Bitmap iconCollision { - get { - object obj = ResourceManager.GetObject("iconCollision", resourceCulture); - return ((System.Drawing.Bitmap)(obj)); - } - } - - /// - /// Looks up a localized resource of type System.Drawing.Bitmap. - /// - internal static System.Drawing.Bitmap iconCommand { - get { - object obj = ResourceManager.GetObject("iconCommand", resourceCulture); - return ((System.Drawing.Bitmap)(obj)); - } - } - - /// - /// Looks up a localized resource of type System.Drawing.Bitmap. - /// - internal static System.Drawing.Bitmap iconCommandParam { - get { - object obj = ResourceManager.GetObject("iconCommandParam", resourceCulture); - return ((System.Drawing.Bitmap)(obj)); - } - } - - /// - /// Looks up a localized resource of type System.Drawing.Bitmap. - /// - internal static System.Drawing.Bitmap iconCreateProgram { - get { - object obj = ResourceManager.GetObject("iconCreateProgram", resourceCulture); - return ((System.Drawing.Bitmap)(obj)); - } - } - - /// - /// Looks up a localized resource of type System.Drawing.Bitmap. - /// - internal static System.Drawing.Bitmap iconCreateTarget { - get { - object obj = ResourceManager.GetObject("iconCreateTarget", resourceCulture); - return ((System.Drawing.Bitmap)(obj)); - } - } - - /// - /// Looks up a localized resource of type System.Drawing.Bitmap. - /// - internal static System.Drawing.Bitmap iconCreateTool { - get { - object obj = ResourceManager.GetObject("iconCreateTool", resourceCulture); - return ((System.Drawing.Bitmap)(obj)); - } - } - - /// - /// Looks up a localized resource of type System.Drawing.Bitmap. - /// - internal static System.Drawing.Bitmap iconCustomCode { - get { - object obj = ResourceManager.GetObject("iconCustomCode", resourceCulture); - return ((System.Drawing.Bitmap)(obj)); - } - } - - /// - /// Looks up a localized resource of type System.Drawing.Bitmap. - /// - internal static System.Drawing.Bitmap iconCustomCommand { - get { - object obj = ResourceManager.GetObject("iconCustomCommand", resourceCulture); - return ((System.Drawing.Bitmap)(obj)); - } - } - - /// - /// Looks up a localized resource of type System.Drawing.Bitmap. - /// - internal static System.Drawing.Bitmap iconDeconstructProgramTarget { - get { - object obj = ResourceManager.GetObject("iconDeconstructProgramTarget", resourceCulture); - return ((System.Drawing.Bitmap)(obj)); - } - } - - /// - /// Looks up a localized resource of type System.Drawing.Bitmap. - /// - internal static System.Drawing.Bitmap iconDeconstructTarget { - get { - object obj = ResourceManager.GetObject("iconDeconstructTarget", resourceCulture); - return ((System.Drawing.Bitmap)(obj)); - } - } - - /// - /// Looks up a localized resource of type System.Drawing.Bitmap. - /// - internal static System.Drawing.Bitmap iconFrame { - get { - object obj = ResourceManager.GetObject("iconFrame", resourceCulture); - return ((System.Drawing.Bitmap)(obj)); - } - } - - /// - /// Looks up a localized resource of type System.Drawing.Bitmap. - /// - internal static System.Drawing.Bitmap iconFrameParam { - get { - object obj = ResourceManager.GetObject("iconFrameParam", resourceCulture); - return ((System.Drawing.Bitmap)(obj)); - } - } - - /// - /// Looks up a localized resource of type System.Drawing.Bitmap. - /// - internal static System.Drawing.Bitmap iconGetPlane { - get { - object obj = ResourceManager.GetObject("iconGetPlane", resourceCulture); - return ((System.Drawing.Bitmap)(obj)); - } - } - - /// - /// Looks up a localized resource of type System.Drawing.Bitmap. - /// - internal static System.Drawing.Bitmap iconGroupCommand { - get { - object obj = ResourceManager.GetObject("iconGroupCommand", resourceCulture); - return ((System.Drawing.Bitmap)(obj)); - } - } - - /// - /// Looks up a localized resource of type System.Drawing.Bitmap. - /// - internal static System.Drawing.Bitmap iconIO { - get { - object obj = ResourceManager.GetObject("iconIO", resourceCulture); - return ((System.Drawing.Bitmap)(obj)); - } - } - - /// - /// Looks up a localized resource of type System.Drawing.Bitmap. - /// - internal static System.Drawing.Bitmap iconKinematics { - get { - object obj = ResourceManager.GetObject("iconKinematics", resourceCulture); - return ((System.Drawing.Bitmap)(obj)); - } - } - - /// - /// Looks up a localized resource of type System.Drawing.Bitmap. - /// - internal static System.Drawing.Bitmap iconMessage { - get { - object obj = ResourceManager.GetObject("iconMessage", resourceCulture); - return ((System.Drawing.Bitmap)(obj)); - } - } - - /// - /// Looks up a localized resource of type System.Drawing.Bitmap. - /// - internal static System.Drawing.Bitmap iconOutbox { - get { - object obj = ResourceManager.GetObject("iconOutbox", resourceCulture); - return ((System.Drawing.Bitmap)(obj)); - } - } - - /// - /// Looks up a localized resource of type System.Drawing.Bitmap. - /// - internal static System.Drawing.Bitmap iconParamProgram { - get { - object obj = ResourceManager.GetObject("iconParamProgram", resourceCulture); - return ((System.Drawing.Bitmap)(obj)); - } - } - - /// - /// Looks up a localized resource of type System.Drawing.Bitmap. - /// - internal static System.Drawing.Bitmap iconPlay { - get { - object obj = ResourceManager.GetObject("iconPlay", resourceCulture); - return ((System.Drawing.Bitmap)(obj)); - } - } - - /// - /// Looks up a localized resource of type System.Drawing.Bitmap. - /// - internal static System.Drawing.Bitmap iconProgramParam { - get { - object obj = ResourceManager.GetObject("iconProgramParam", resourceCulture); - return ((System.Drawing.Bitmap)(obj)); - } - } - - /// - /// Looks up a localized resource of type System.Drawing.Bitmap. - /// - internal static System.Drawing.Bitmap iconPulseDO { - get { - object obj = ResourceManager.GetObject("iconPulseDO", resourceCulture); - return ((System.Drawing.Bitmap)(obj)); - } - } - - /// - /// Looks up a localized resource of type System.Drawing.Bitmap. - /// - internal static System.Drawing.Bitmap iconRobot { - get { - object obj = ResourceManager.GetObject("iconRobot", resourceCulture); - return ((System.Drawing.Bitmap)(obj)); - } - } - - /// - /// Looks up a localized resource of type System.Drawing.Bitmap. - /// - internal static System.Drawing.Bitmap iconRobotList { - get { - object obj = ResourceManager.GetObject("iconRobotList", resourceCulture); - return ((System.Drawing.Bitmap)(obj)); - } - } - - /// - /// Looks up a localized resource of type System.Drawing.Bitmap. - /// - internal static System.Drawing.Bitmap iconRobotParam { - get { - object obj = ResourceManager.GetObject("iconRobotParam", resourceCulture); - return ((System.Drawing.Bitmap)(obj)); - } - } - - /// - /// Looks up a localized resource of type System.Drawing.Bitmap. - /// - internal static System.Drawing.Bitmap iconSave { - get { - object obj = ResourceManager.GetObject("iconSave", resourceCulture); - return ((System.Drawing.Bitmap)(obj)); - } - } - - /// - /// Looks up a localized resource of type System.Drawing.Bitmap. - /// - internal static System.Drawing.Bitmap iconSetAO { - get { - object obj = ResourceManager.GetObject("iconSetAO", resourceCulture); - return ((System.Drawing.Bitmap)(obj)); - } - } - - /// - /// Looks up a localized resource of type System.Drawing.Bitmap. - /// - internal static System.Drawing.Bitmap iconSetDO { - get { - object obj = ResourceManager.GetObject("iconSetDO", resourceCulture); - return ((System.Drawing.Bitmap)(obj)); - } - } - - /// - /// Looks up a localized resource of type System.Drawing.Bitmap. - /// - internal static System.Drawing.Bitmap iconSimpleTrail { - get { - object obj = ResourceManager.GetObject("iconSimpleTrail", resourceCulture); - return ((System.Drawing.Bitmap)(obj)); - } - } - - /// - /// Looks up a localized resource of type System.Drawing.Bitmap. - /// - internal static System.Drawing.Bitmap iconSimulation { - get { - object obj = ResourceManager.GetObject("iconSimulation", resourceCulture); - return ((System.Drawing.Bitmap)(obj)); - } - } - - /// - /// Looks up a localized resource of type System.Drawing.Bitmap. - /// - internal static System.Drawing.Bitmap iconSortPaths { - get { - object obj = ResourceManager.GetObject("iconSortPaths", resourceCulture); - return ((System.Drawing.Bitmap)(obj)); - } - } - - /// - /// Looks up a localized resource of type System.Drawing.Bitmap. - /// - internal static System.Drawing.Bitmap iconSpeed { - get { - object obj = ResourceManager.GetObject("iconSpeed", resourceCulture); - return ((System.Drawing.Bitmap)(obj)); - } - } - - /// - /// Looks up a localized resource of type System.Drawing.Bitmap. - /// - internal static System.Drawing.Bitmap iconSpeedParam { - get { - object obj = ResourceManager.GetObject("iconSpeedParam", resourceCulture); - return ((System.Drawing.Bitmap)(obj)); - } - } - - /// - /// Looks up a localized resource of type System.Drawing.Bitmap. - /// - internal static System.Drawing.Bitmap iconStopCommand { - get { - object obj = ResourceManager.GetObject("iconStopCommand", resourceCulture); - return ((System.Drawing.Bitmap)(obj)); - } - } - - /// - /// Looks up a localized resource of type System.Drawing.Bitmap. - /// - internal static System.Drawing.Bitmap iconTargetParam { - get { - object obj = ResourceManager.GetObject("iconTargetParam", resourceCulture); - return ((System.Drawing.Bitmap)(obj)); - } - } - - /// - /// Looks up a localized resource of type System.Drawing.Bitmap. - /// - internal static System.Drawing.Bitmap iconTool { - get { - object obj = ResourceManager.GetObject("iconTool", resourceCulture); - return ((System.Drawing.Bitmap)(obj)); - } - } - - /// - /// Looks up a localized resource of type System.Drawing.Bitmap. - /// - internal static System.Drawing.Bitmap iconToolParam { - get { - object obj = ResourceManager.GetObject("iconToolParam", resourceCulture); - return ((System.Drawing.Bitmap)(obj)); - } - } - - /// - /// Looks up a localized resource of type System.Drawing.Bitmap. - /// - internal static System.Drawing.Bitmap iconToPlane { - get { - object obj = ResourceManager.GetObject("iconToPlane", resourceCulture); - return ((System.Drawing.Bitmap)(obj)); - } - } - - /// - /// Looks up a localized resource of type System.Drawing.Bitmap. - /// - internal static System.Drawing.Bitmap iconUpload { - get { - object obj = ResourceManager.GetObject("iconUpload", resourceCulture); - return ((System.Drawing.Bitmap)(obj)); - } - } - - /// - /// Looks up a localized resource of type System.Drawing.Bitmap. - /// - internal static System.Drawing.Bitmap iconURRemote { - get { - object obj = ResourceManager.GetObject("iconURRemote", resourceCulture); - return ((System.Drawing.Bitmap)(obj)); - } - } - - /// - /// Looks up a localized resource of type System.Drawing.Bitmap. - /// - internal static System.Drawing.Bitmap iconWait { - get { - object obj = ResourceManager.GetObject("iconWait", resourceCulture); - return ((System.Drawing.Bitmap)(obj)); - } - } - - /// - /// Looks up a localized resource of type System.Drawing.Bitmap. - /// - internal static System.Drawing.Bitmap iconWaitDI { - get { - object obj = ResourceManager.GetObject("iconWaitDI", resourceCulture); - return ((System.Drawing.Bitmap)(obj)); - } - } - - /// - /// Looks up a localized resource of type System.Drawing.Bitmap. - /// - internal static System.Drawing.Bitmap iconZoneParam { - get { - object obj = ResourceManager.GetObject("iconZoneParam", resourceCulture); - return ((System.Drawing.Bitmap)(obj)); - } - } - } -} diff --git a/src/Robots.Grasshopper/Properties/Resources.resx b/src/Robots.Grasshopper/Properties/Resources.resx deleted file mode 100644 index ee04b54..0000000 --- a/src/Robots.Grasshopper/Properties/Resources.resx +++ /dev/null @@ -1,259 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - - ..\Assets\icons\iconAngles.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\Assets\icons\iconCheckCollisions.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\Assets\icons\iconCheckProgram.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\Assets\icons\iconCollision.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\Assets\icons\iconCommand.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\Assets\icons\iconCommandParam.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\Assets\icons\iconCreateProgram.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\Assets\icons\iconCreateTarget.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\assets\icons\iconcreatetool.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\Assets\icons\iconCustomCode.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\Assets\icons\iconCustomCommand.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\Assets\icons\iconDeconstructProgramTarget.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\Assets\icons\iconDeconstructTarget.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\Assets\icons\iconFrame.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\Assets\icons\iconFrameParam.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\Assets\icons\iconGetPlane.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\Assets\icons\iconGroupCommand.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\Assets\icons\iconIO.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\Assets\icons\iconKinematics.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\Assets\icons\iconMessage.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\Assets\icons\iconOutbox.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\Assets\icons\iconParamProgram.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\Assets\icons\iconPlay.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\Assets\icons\iconProgramParam.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\Assets\icons\iconPulseDO.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\Assets\icons\iconRobot.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\Assets\icons\iconRobotList.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\Assets\icons\iconRobotParam.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\Assets\icons\iconSave.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\Assets\icons\iconSetAO.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\Assets\icons\iconSetDO.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\Assets\icons\iconSimpleTrail.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\Assets\icons\iconSimulation.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\Assets\icons\iconSortPaths.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\Assets\icons\iconSpeed.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\Assets\icons\iconSpeedParam.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\Assets\icons\iconStopCommand.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\Assets\icons\iconTargetParam.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\Assets\icons\iconTool.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\Assets\icons\iconToolParam.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\Assets\icons\iconToPlane.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\Assets\icons\iconUpload.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\Assets\icons\iconURRemote.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\Assets\icons\iconWait.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\Assets\icons\iconWaitDI.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\Assets\icons\iconZoneParam.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - \ No newline at end of file diff --git a/src/Robots.Grasshopper/Properties/launchSettings.json b/src/Robots.Grasshopper/Properties/launchSettings.json deleted file mode 100644 index 9e045b2..0000000 --- a/src/Robots.Grasshopper/Properties/launchSettings.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "profiles": { - "Robots.Grasshopper": { - "commandName": "Executable", - "executablePath": "C:\\Program Files\\Rhino 7\\System\\Rhino.exe", - "commandLineArgs": "/nosplash /runscript=\"-grasshopper window show _enter\"" - } - } -} \ No newline at end of file diff --git a/src/Robots.Grasshopper/RobotSystem/DegreesToRadians.cs b/src/Robots.Grasshopper/RobotSystem/DegreesToRadians.cs index d15f2f0..2c178f9 100644 --- a/src/Robots.Grasshopper/RobotSystem/DegreesToRadians.cs +++ b/src/Robots.Grasshopper/RobotSystem/DegreesToRadians.cs @@ -7,7 +7,7 @@ public class DegreesToRadians : GH_Component public DegreesToRadians() : base("Degrees to radians", "DegToRad", "Manufacturer dependent degrees to radians conversion.", "Robots", "Util") { } public override GH_Exposure Exposure => GH_Exposure.primary; public override Guid ComponentGuid => new("{C10B3A17-5C19-4805-ACCF-839B85C4D21C}"); - protected override System.Drawing.Bitmap Icon => Properties.Resources.iconAngles; + protected override System.Drawing.Bitmap Icon => Util.GetIcon("iconAngles"); protected override void RegisterInputParams(GH_InputParamManager pManager) { diff --git a/src/Robots.Grasshopper/RobotSystem/FromPlane.cs b/src/Robots.Grasshopper/RobotSystem/FromPlane.cs index 6d09801..0d7508d 100644 --- a/src/Robots.Grasshopper/RobotSystem/FromPlane.cs +++ b/src/Robots.Grasshopper/RobotSystem/FromPlane.cs @@ -8,7 +8,7 @@ public class FromPlane : GH_Component public FromPlane() : base("From plane", "FromPlane", "Returns a list of numbers from a plane. The first 3 numbers are the x, y and z coordinates of the origin. The last 3 or 4 values correspond to euler angles in degrees or quaternion values respectively.", "Robots", "Util") { } public override GH_Exposure Exposure => GH_Exposure.primary; public override Guid ComponentGuid => new("{03353E74-E816-4E0A-AF9A-8AFB4C111D0B}"); - protected override System.Drawing.Bitmap Icon => Properties.Resources.iconToPlane; + protected override System.Drawing.Bitmap Icon => Util.GetIcon("iconToPlane"); protected override void RegisterInputParams(GH_InputParamManager pManager) { diff --git a/src/Robots.Grasshopper/RobotSystem/GetPlane.cs b/src/Robots.Grasshopper/RobotSystem/GetPlane.cs index 20687f6..130cad6 100644 --- a/src/Robots.Grasshopper/RobotSystem/GetPlane.cs +++ b/src/Robots.Grasshopper/RobotSystem/GetPlane.cs @@ -9,7 +9,7 @@ public class GetPlane : GH_Component public GetPlane() : base("Get plane", "GetPlane", "Get a plane from a point in space and a 3D rotation. The input has to be a list of 6 or 7 numbers. ", "Robots", "Util") { } public override GH_Exposure Exposure => GH_Exposure.primary; public override Guid ComponentGuid => new("{F271BD0B-7249-4647-B273-577D8EA6328F}"); - protected override Bitmap Icon => Properties.Resources.iconGetPlane; + protected override Bitmap Icon => Util.GetIcon("iconGetPlane"); protected override void RegisterInputParams(GH_InputParamManager pManager) { diff --git a/src/Robots.Grasshopper/RobotSystem/Kinematics.cs b/src/Robots.Grasshopper/RobotSystem/Kinematics.cs index d77b826..cbad3aa 100644 --- a/src/Robots.Grasshopper/RobotSystem/Kinematics.cs +++ b/src/Robots.Grasshopper/RobotSystem/Kinematics.cs @@ -8,7 +8,7 @@ public class Kinematics : GH_Component public Kinematics() : base("Kinematics", "K", "Inverse and forward kinematics for a single target (or group of targets in a robot cell with coord", "Robots", "Components") { } public override GH_Exposure Exposure => GH_Exposure.quinary; public override Guid ComponentGuid => new("{EFDA05EB-B281-4703-9C9E-B5F98A9B2E1D}"); - protected override System.Drawing.Bitmap Icon => Properties.Resources.iconKinematics; + protected override System.Drawing.Bitmap Icon => Util.GetIcon("iconKinematics"); protected override void RegisterInputParams(GH_InputParamManager pManager) { diff --git a/src/Robots.Grasshopper/RobotSystem/LoadRobotSystem.cs b/src/Robots.Grasshopper/RobotSystem/LoadRobotSystem.cs index 3784fca..583a339 100644 --- a/src/Robots.Grasshopper/RobotSystem/LoadRobotSystem.cs +++ b/src/Robots.Grasshopper/RobotSystem/LoadRobotSystem.cs @@ -15,7 +15,7 @@ public class LoadRobotSystem : GH_Component public LoadRobotSystem() : base("Load robot system", "LoadRobot", "Loads a robot system from the library.", "Robots", "Components") { } public override GH_Exposure Exposure => GH_Exposure.primary; public override Guid ComponentGuid => new("{7722D7E3-98DE-49B5-9B1D-E0D1B938B4A7}"); - protected override Bitmap Icon => Properties.Resources.iconRobot; + protected override Bitmap Icon => Util.GetIcon("iconRobot"); protected override void RegisterInputParams(GH_InputParamManager pManager) { diff --git a/src/Robots.Grasshopper/RobotSystem/LoadTool.cs b/src/Robots.Grasshopper/RobotSystem/LoadTool.cs index 02d284f..9b13859 100644 --- a/src/Robots.Grasshopper/RobotSystem/LoadTool.cs +++ b/src/Robots.Grasshopper/RobotSystem/LoadTool.cs @@ -13,7 +13,7 @@ public class LoadTool : GH_Component public LoadTool() : base("Load tool", "LoadTool", "Loads a tool from the library.", "Robots", "Components") { } public override GH_Exposure Exposure => GH_Exposure.primary; public override Guid ComponentGuid => new("{542aa5fd-4f02-4ee5-a2a0-02b0fac8777f}"); - protected override Bitmap Icon => Properties.Resources.iconTool; + protected override Bitmap Icon => Util.GetIcon("iconTool"); protected override void RegisterInputParams(GH_InputParamManager pManager) { diff --git a/src/Robots.Grasshopper/Robots.Grasshopper.csproj b/src/Robots.Grasshopper/Robots.Grasshopper.csproj index 288b093..e1229e1 100644 --- a/src/Robots.Grasshopper/Robots.Grasshopper.csproj +++ b/src/Robots.Grasshopper/Robots.Grasshopper.csproj @@ -4,33 +4,28 @@ net48 true $(Product) Grasshopper + .gha - - - True - True - Resources.resx - - - - - - ResXFileCodeGenerator - Resources.Designer.cs - + + + C:\Program Files\Rhino 7\System\Rhino.exe + /nosplash /runscript="-grasshopper window show _enter" + Program + + - + - + \ No newline at end of file diff --git a/src/Robots.Grasshopper/RobotsInfo.cs b/src/Robots.Grasshopper/RobotsInfo.cs index b7e72da..1ed3901 100644 --- a/src/Robots.Grasshopper/RobotsInfo.cs +++ b/src/Robots.Grasshopper/RobotsInfo.cs @@ -16,7 +16,7 @@ public RobotsInfo() public override string Name => GetInfo().Product; public override string AssemblyVersion => GetInfo().InformationalVersion; - public override Bitmap Icon => Properties.Resources.iconRobot; + public override Bitmap Icon => Util.GetIcon("iconRobot"); public override string Description => GetInfo().Description; public override GH_LibraryLicense License => GH_LibraryLicense.opensource; public override string AuthorName => GetCompany()[0]; diff --git a/src/Robots.Grasshopper/Target/CreateFrame.cs b/src/Robots.Grasshopper/Target/CreateFrame.cs index 22ba40c..2902965 100644 --- a/src/Robots.Grasshopper/Target/CreateFrame.cs +++ b/src/Robots.Grasshopper/Target/CreateFrame.cs @@ -10,7 +10,7 @@ public class CreateFrame : GH_Component public CreateFrame() : base("Create frame", "Frame", "Creates a frame or work plane.", "Robots", "Components") { } public override GH_Exposure Exposure => GH_Exposure.tertiary; public override Guid ComponentGuid => new("{467237C8-08F5-4104-A553-8814AACAFE51}"); - protected override Bitmap Icon => Properties.Resources.iconFrame; + protected override Bitmap Icon => Util.GetIcon("iconFrame"); protected override void RegisterInputParams(GH_InputParamManager pManager) { diff --git a/src/Robots.Grasshopper/Target/CreateSpeed.cs b/src/Robots.Grasshopper/Target/CreateSpeed.cs index f6c9e54..db76ca7 100644 --- a/src/Robots.Grasshopper/Target/CreateSpeed.cs +++ b/src/Robots.Grasshopper/Target/CreateSpeed.cs @@ -9,7 +9,7 @@ public class CreateSpeed : GH_Component public CreateSpeed() : base("Create speed", "Speed", "Creates a target speed.", "Robots", "Components") { } public override GH_Exposure Exposure => GH_Exposure.tertiary; public override Guid ComponentGuid => new("{BD11418C-74E1-4B13-BE1A-AF105906E1BC}"); - protected override Bitmap Icon => Properties.Resources.iconSpeed; + protected override Bitmap Icon => Util.GetIcon("iconSpeed"); protected override void RegisterInputParams(GH_InputParamManager pManager) { diff --git a/src/Robots.Grasshopper/Target/CreateTarget.cs b/src/Robots.Grasshopper/Target/CreateTarget.cs index 28255f7..cfa5008 100644 --- a/src/Robots.Grasshopper/Target/CreateTarget.cs +++ b/src/Robots.Grasshopper/Target/CreateTarget.cs @@ -21,7 +21,7 @@ public sealed class CreateTarget : GH_Component, IGH_VariableParameterComponent new Param_String() { Name = "Motion", NickName = "M", Description = "Type of motion", Optional = true }, new ToolParameter() { Name = "Tool", NickName = "T", Description = "Tool or end effector", Optional = true }, new SpeedParameter() { Name = "Speed", NickName = "S", Description = "Speed of robot in mm/s", Optional = true }, - new ZoneParameter() { Name = "Zone", NickName = "Z", Description = "Aproximation zone in mm", Optional = true }, + new ZoneParameter() { Name = "Zone", NickName = "Z", Description = "Approximation zone in mm", Optional = true }, new CommandParameter() { Name = "Command", NickName = "C", Description = "Robot command", Optional = true }, new FrameParameter() { Name = "Frame", NickName = "F", Description = "Base frame", Optional = true }, new Param_String() { Name = "External", NickName = "E", Description = "External axis", Optional = true } @@ -32,7 +32,7 @@ public sealed class CreateTarget : GH_Component, IGH_VariableParameterComponent public CreateTarget() : base("Create target", "Target", "Creates or modifies a target. Right click for additional inputs", "Robots", "Components") { } public override GH_Exposure Exposure => GH_Exposure.secondary; public override Guid ComponentGuid => new("{BC68DC2C-EED6-4717-9F49-80A2B21B75B6}"); - protected override Bitmap Icon => Properties.Resources.iconCreateTarget; + protected override Bitmap Icon => Util.GetIcon("iconCreateTarget"); protected override void RegisterInputParams(GH_InputParamManager pManager) { @@ -59,6 +59,7 @@ protected override void SolveInstance(IGH_DataAccess DA) bool hasExternal = Params.Input.Any(x => x.Name == "External"); GH_Target? sourceTarget = null; + if (hasTarget) { if (!DA.GetData("Target", ref sourceTarget) || sourceTarget is null) diff --git a/src/Robots.Grasshopper/Target/CreateTool.cs b/src/Robots.Grasshopper/Target/CreateTool.cs index 42f2dc0..e0220eb 100644 --- a/src/Robots.Grasshopper/Target/CreateTool.cs +++ b/src/Robots.Grasshopper/Target/CreateTool.cs @@ -10,7 +10,7 @@ public class CreateTool : GH_Component public CreateTool() : base("Create tool", "Tool", "Creates a tool or end effector.", "Robots", "Components") { } public override GH_Exposure Exposure => GH_Exposure.tertiary; public override Guid ComponentGuid => new("{E59E634B-7AD5-4682-B2C1-F18B73AE05C6}"); - protected override Bitmap Icon => Properties.Resources.iconCreateTool; + protected override Bitmap Icon => Util.GetIcon("iconCreateTool"); protected override void RegisterInputParams(GH_InputParamManager pManager) { diff --git a/src/Robots.Grasshopper/Target/DeconstructTarget.cs b/src/Robots.Grasshopper/Target/DeconstructTarget.cs index 96207ea..bdf2bc9 100644 --- a/src/Robots.Grasshopper/Target/DeconstructTarget.cs +++ b/src/Robots.Grasshopper/Target/DeconstructTarget.cs @@ -25,7 +25,7 @@ public sealed class DeconstructTarget : GH_Component, IGH_VariableParameterCompo public DeconstructTarget() : base("Deconstruct target", "DeTarget", "Deconstructs a target. Right click for additional outputs", "Robots", "Components") { } public override GH_Exposure Exposure => GH_Exposure.secondary; public override Guid ComponentGuid => new("{3252D880-59F9-4C9A-8A92-A6CD4C0BA591}"); - protected override Bitmap Icon => Properties.Resources.iconDeconstructTarget; + protected override Bitmap Icon => Util.GetIcon("iconDeconstructTarget"); protected override void RegisterInputParams(GH_InputParamManager pManager) { diff --git a/src/Robots.Grasshopper/Util.cs b/src/Robots.Grasshopper/Util.cs new file mode 100644 index 0000000..a5e6315 --- /dev/null +++ b/src/Robots.Grasshopper/Util.cs @@ -0,0 +1,14 @@ +using System.Drawing; + +namespace Robots.Grasshopper; + +static class Util +{ + public static Bitmap GetIcon(string name) + { + var icon = $"Robots.Grasshopper.Assets.Embed.{name}.png"; + var assembly = typeof(RobotsInfo).Assembly; + using var stream = assembly.GetManifestResourceStream(icon); + return new Bitmap(stream); + } +} \ No newline at end of file diff --git a/src/Robots.Grasshopper/Visualization/DrawSimpleTrail.cs b/src/Robots.Grasshopper/Visualization/DrawSimpleTrail.cs index e2714f1..f010cb6 100644 --- a/src/Robots.Grasshopper/Visualization/DrawSimpleTrail.cs +++ b/src/Robots.Grasshopper/Visualization/DrawSimpleTrail.cs @@ -12,7 +12,7 @@ public class DrawSimpleTrail : GH_Component public DrawSimpleTrail() : base("Simple trail", "Trail", "Draws a trail behind the TCP. To be used with the simulation component.", "Robots", "Util") { } public override GH_Exposure Exposure => GH_Exposure.secondary; public override Guid ComponentGuid => new("{20F09C83-25A5-453B-B0C9-673CD784A52F}"); - protected override Bitmap Icon => Properties.Resources.iconSimpleTrail; + protected override Bitmap Icon => Util.GetIcon("iconSimpleTrail"); protected override void RegisterInputParams(GH_InputParamManager pManager) { diff --git a/src/Robots/Properties/Resources.Designer.cs b/src/Robots/Properties/Resources.Designer.cs deleted file mode 100644 index 70a2696..0000000 --- a/src/Robots/Properties/Resources.Designer.cs +++ /dev/null @@ -1,79 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Runtime Version:4.0.30319.42000 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace Robots.Properties { - using System; - - - /// - /// A strongly-typed resource class, for looking up localized strings, etc. - /// - // This class was auto-generated by the StronglyTypedResourceBuilder - // class via a tool like ResGen or Visual Studio. - // To add or remove a member, edit your .ResX file then rerun ResGen - // with the /str option, or rebuild your VS project. - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] - internal class Resources { - - private static global::System.Resources.ResourceManager resourceMan; - - private static global::System.Globalization.CultureInfo resourceCulture; - - [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] - internal Resources() { - } - - /// - /// Returns the cached ResourceManager instance used by this class. - /// - [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - internal static global::System.Resources.ResourceManager ResourceManager { - get { - if (object.ReferenceEquals(resourceMan, null)) { - global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Robots.Properties.Resources", typeof(Resources).Assembly); - resourceMan = temp; - } - return resourceMan; - } - } - - /// - /// Overrides the current thread's CurrentUICulture property for all - /// resource lookups using this strongly typed resource class. - /// - [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - internal static global::System.Globalization.CultureInfo Culture { - get { - return resourceCulture; - } - set { - resourceCulture = value; - } - } - - /// - /// Looks up a localized string similar to Message Size,integer,1,4,,Total message length in bytes,,,,,,,,,,,, - ///Time,double,1,8,1,Time elapsed since the controller was started,,,,,,,,,,,, - ///q target,double,6,48,2 - 7,Target joint positions,,,,,,,,,,,, - ///qd target,double,6,48,8 - 13,Target joint velocities,,,,,,,,,,,, - ///qdd target,double,6,48,14 - 19,Target joint accelerations,,,,,,,,,,,, - ///I target,double,6,48,20 - 25,Target joint currents,,,,,,,,,,,, - ///M target,double,6,48,26 - 31,Target joint moments (torques),,,,,,,,,,,, - ///q actual,double,6,48,32 - 37, [rest of string was truncated]";. - /// - internal static string URRealTime { - get { - return ResourceManager.GetString("URRealTime", resourceCulture); - } - } - } -} diff --git a/src/Robots/Properties/Resources.resx b/src/Robots/Properties/Resources.resx deleted file mode 100644 index 901a43a..0000000 --- a/src/Robots/Properties/Resources.resx +++ /dev/null @@ -1,125 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 1.3 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.3500.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.3500.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - - Message Size,integer,1,4,,Total message length in bytes,,,,,,,,,,,, -Time,double,1,8,1,Time elapsed since the controller was started,,,,,,,,,,,, -q target,double,6,48,2 - 7,Target joint positions,,,,,,,,,,,, -qd target,double,6,48,8 - 13,Target joint velocities,,,,,,,,,,,, -qdd target,double,6,48,14 - 19,Target joint accelerations,,,,,,,,,,,, -I target,double,6,48,20 - 25,Target joint currents,,,,,,,,,,,, -M target,double,6,48,26 - 31,Target joint moments (torques),,,,,,,,,,,, -q actual,double,6,48,32 - 37,Actual joint positions,,,,,,,,,,,, -qd actual,double,6,48,38 - 43,Actual joint velocities,,,,,,,,,,,, -I actual,double,6,48,44 - 49,Actual joint currents,,,,,,,,,,,, -Tool Accelerometer values,double,3,24,50 - 53,"Tool x,y and z accelerometer values (software version 1.7)",,,,,,,,,,,, -Unused,double,15,120,54 - 67,Unused,,,,,,,,,,,, -TCP force,double,6,48,68 - 73,Generalised forces in the TCP,,,,,,,,,,,, -Tool vector,double,6,48,74 - 79,"Cartesian coordinates of the tool: (x,y,z,rx,ry,rz), where rx, ry and rz is a rotation vector representation of the tool orientation",,,,,,,,,,,, -TCP speed,double,6,48,80 - 85,Speed of the tool given in cartesian coordinates,,,,,,,,,,,, -Digital input bits,double,1,8,86,"Current state of the digital inputs. NOTE: these are bits encoded as int64_t, e.g. a value of 5 corresponds to bit 0 and bit 2 set high",,,,,,,,,,,, -Motor temperatures,double,6,48,87 - 92,Temperature of each joint in degrees celcius,,,,,,,,,,,, -Controller Timer,double,1,8,93,Controller realtime thread execution time,,,,,,,,,,,, -Test value,double,1,8,94,A value used by Universal Robots software only,,,,,,,,,,,, -Robot Mode,double,1,8,95,"Robot control mode (see PolyScopeProgramServer on the ""How to"" page",,,,,,,,,,,, -Joint Modes,double,6,48,96-101,"Joint control modes (see PolyScopeProgramServer on the ""How to"" page) (only from software version 1.8 and on)",,,,,,,,,,,, - - \ No newline at end of file diff --git a/src/Robots/Remotes/URRealTime.cs b/src/Robots/Remotes/URRealTime.cs index f9948ca..1602f0b 100644 --- a/src/Robots/Remotes/URRealTime.cs +++ b/src/Robots/Remotes/URRealTime.cs @@ -21,10 +21,14 @@ public URRealTime(string IP) void MakeDataTypes() { - var lines = Properties.Resources.URRealTime.Split(new string[] { "\r\n" }, StringSplitOptions.None); + var resource = "Robots.Remote.URRealTime.txt"; + var assembly = GetType().Assembly; + using var stream = assembly.GetManifestResourceStream(resource); + using var reader = new StreamReader(stream); int start = 0; - foreach (var line in lines) + string line; + while ((line = reader.ReadLine()) is not null) { var data = line.Split(','); int length = Convert.ToInt32(data[2]); @@ -74,7 +78,6 @@ byte[] GetByteStream() var result = new byte[size]; Array.Copy(byteStream, result, size); - //return byteStream.Take(size).ToArray(); return result; } @@ -135,11 +138,11 @@ public void Send(string message) public class FeedbackType { - public string Meaning { get; set; } = null!; - public string Notes { get; set; } = null!; - internal string Type { get; set; } = null!; + public string Meaning { get; set; } = default!; + public string Notes { get; set; } = default!; + internal string Type { get; set; } = default!; internal int Length { get; set; } internal int Size { get; set; } internal int Start { get; set; } - public double[] Value { get; set; } = null!; + public double[] Value { get; set; } = default!; } diff --git a/src/Robots/Remotes/URRealTime.txt b/src/Robots/Remotes/URRealTime.txt new file mode 100644 index 0000000..ad7594f --- /dev/null +++ b/src/Robots/Remotes/URRealTime.txt @@ -0,0 +1,21 @@ +Message Size,integer,1,4,,Total message length in bytes,,,,,,,,,,,, +Time,double,1,8,1,Time elapsed since the controller was started,,,,,,,,,,,, +q target,double,6,48,2 - 7,Target joint positions,,,,,,,,,,,, +qd target,double,6,48,8 - 13,Target joint velocities,,,,,,,,,,,, +qdd target,double,6,48,14 - 19,Target joint accelerations,,,,,,,,,,,, +I target,double,6,48,20 - 25,Target joint currents,,,,,,,,,,,, +M target,double,6,48,26 - 31,Target joint moments (torques),,,,,,,,,,,, +q actual,double,6,48,32 - 37,Actual joint positions,,,,,,,,,,,, +qd actual,double,6,48,38 - 43,Actual joint velocities,,,,,,,,,,,, +I actual,double,6,48,44 - 49,Actual joint currents,,,,,,,,,,,, +Tool Accelerometer values,double,3,24,50 - 53,"Tool x,y and z accelerometer values (software version 1.7)",,,,,,,,,,,, +Unused,double,15,120,54 - 67,Unused,,,,,,,,,,,, +TCP force,double,6,48,68 - 73,Generalised forces in the TCP,,,,,,,,,,,, +Tool vector,double,6,48,74 - 79,"Cartesian coordinates of the tool: (x,y,z,rx,ry,rz), where rx, ry and rz is a rotation vector representation of the tool orientation",,,,,,,,,,,, +TCP speed,double,6,48,80 - 85,Speed of the tool given in cartesian coordinates,,,,,,,,,,,, +Digital input bits,double,1,8,86,"Current state of the digital inputs. NOTE: these are bits encoded as int64_t, e.g. a value of 5 corresponds to bit 0 and bit 2 set high",,,,,,,,,,,, +Motor temperatures,double,6,48,87 - 92,Temperature of each joint in degrees celcius,,,,,,,,,,,, +Controller Timer,double,1,8,93,Controller realtime thread execution time,,,,,,,,,,,, +Test value,double,1,8,94,A value used by Universal Robots software only,,,,,,,,,,,, +Robot Mode,double,1,8,95,"Robot control mode (see PolyScopeProgramServer on the ""How to"" page",,,,,,,,,,,, +Joint Modes,double,6,48,96-101,"Joint control modes (see PolyScopeProgramServer on the ""How to"" page) (only from software version 1.8 and on)",,,,,,,,,,,, \ No newline at end of file diff --git a/src/Robots/Robots.csproj b/src/Robots/Robots.csproj index 1344a8b..8d06b43 100644 --- a/src/Robots/Robots.csproj +++ b/src/Robots/Robots.csproj @@ -17,18 +17,7 @@ - - True - True - Resources.resx - - - - - - ResXFileCodeGenerator - Resources.Designer.cs - + - + \ No newline at end of file