
MTP
Australia
Asked
— Edited
Thank you to all the communities who guided me in my questions, but I encountered the correct error in uploading the plugin. The first time I uploaded the plugin, I mistakenly recorded the plugin's DLL file and it was reported as an error. . But when I fix it and reload, I still have it. Even if I change another plugin.xml, I still don't see the new plugin file, but I found the old plugin to have an old error. Hope the community will help me succeed with my first plugin?
Best regards
Related Hardware EZ-Robot EZ-B v4
https://synthiam.com/Community/Questions/Type-Or-Namespace-ezb_connect-Does-Not-Exist-In-The-Namespace-751
although I have bundled Ez.SDK in the project
Error CS0234 The type or namespace name 'AutoPosition' does not exist in the namespace 'EZ_B' (are you missing an assembly reference?) ClassLibrary16 C:\Users\HP\source\repos\ClassLibrary16\ClassLibrary16\Autoposition.cs
Error CS0246 The type or namespace name 'AutoPosition' could not be found (are you missing a using directive or an assembly reference?) ClassLibrary16 C:\Users\HP\source\repos\ClassLibrary16\ClassLibrary16\Autoposition.cs 15 Active
AND warning:
Warning Resolved file has a bad image, no metadata, or is otherwise inaccessible. Index not found. (Exception from HRESULT: 0x80131124) ..\..\..\..\..\..\Program Files (x86)\SynthiamInc\ARC.EZ_B.dll ClassLibrary16
Warning Resolved file has a bad image, no metadata, or is otherwise inaccessible. Index not found. (Exception from HRESULT: 0x80131124) ..\..\..\..\..\..\Program Files (x86)\SynthiamInc\ARC.ARC.exe ClassLibrary16
this my code:
using System;
using EZ_B;
using EZ_B.Classes;
namespace EZFormApplication
{
public class WavePositions
{
EZ_B.AutoPosition _wavePosition;
public AutoPosition WavePosition
{
get
{
return _wavePosition;
}
}
public WavePositions(EZ_B.EZB ezb)
{
_wavePosition = new AutoPosition(ezb, "My Auto Positions");
// Add servos
_wavePosition.Config.AddServo(EZ_B.Servo.ServoPortEnum.D16);
_wavePosition.Config.AddServo(EZ_B.Servo.ServoPortEnum.D17);
_wavePosition.Config.AddServo(EZ_B.Servo.ServoPortEnum.D12);
_wavePosition.Config.AddServo(EZ_B.Servo.ServoPortEnum.D13);
_wavePosition.Config.AddServo(EZ_B.Servo.ServoPortEnum.D14);
_wavePosition.Config.AddServo(EZ_B.Servo.ServoPortEnum.D3);
_wavePosition.Config.AddServo(EZ_B.Servo.ServoPortEnum.D2);
_wavePosition.Config.AddServo(EZ_B.Servo.ServoPortEnum.D7);
_wavePosition.Config.AddServo(EZ_B.Servo.ServoPortEnum.D8);
_wavePosition.Config.AddServo(EZ_B.Servo.ServoPortEnum.D4);
_wavePosition.Config.AddServo(EZ_B.Servo.ServoPortEnum.D5);
_wavePosition.Config.AddServo(EZ_B.Servo.ServoPortEnum.D9);
_wavePosition.Config.AddServo(EZ_B.Servo.ServoPortEnum.D6);
_wavePosition.Config.AddServo(EZ_B.Servo.ServoPortEnum.D1);
_wavePosition.Config.AddServo(EZ_B.Servo.ServoPortEnum.D0);
_wavePosition.Config.AddServo(EZ_B.Servo.ServoPortEnum.D18);
// *******************************************************
// ** Init Frames **
// *******************************************************
// STAND
_wavePosition.Config.AddFrame("STAND", "e3333875-865c-4b9f-a35f-589ef7b56abb", new int[] { 90, 90, 90, 90, 90, 180, 1, 30, 60, 150, 120, 90, 90, 90, 90, 90 });
// Wave1
_wavePosition.Config.AddFrame("Wave1", "ae98a3f5-d354-4c10-aa40-010fc6514e21", new int[] { 90, 90, 90, 90, 90, 13, 2, 27, 58, 161, 119, 90, 90, 65, 97, 90 });
// Wave2
_wavePosition.Config.AddFrame("Wave2", "fbf3b358-48dc-4a62-a75c-ebbe7d419279", new int[] { 90, 90, 90, 90, 90, 13, 11, 35, 51, 153, 75, 90, 53, 73, 82, 90 });
// *******************************************************
// ** Init Actions **
// *******************************************************
// Wave
_wavePosition.Config.AddAction(
new AutoPositionAction(
"Wave",
"78f5fb25-4eef-4966-97ba-662a9e761b4e",
true,
false,
new AutoPositionActionFrame[] {
new AutoPositionActionFrame("ae98a3f5-d354-4c10-aa40-010fc6514e21", 5, 7, 0),
new AutoPositionActionFrame("fbf3b358-48dc-4a62-a75c-ebbe7d419279", 25, 3, -1),
new AutoPositionActionFrame("ae98a3f5-d354-4c10-aa40-010fc6514e21", 25, 3, -1),
new AutoPositionActionFrame("fbf3b358-48dc-4a62-a75c-ebbe7d419279", 25, 3, -1),
new AutoPositionActionFrame("ae98a3f5-d354-4c10-aa40-010fc6514e21", 25, 3, -1),
new AutoPositionActionFrame("fbf3b358-48dc-4a62-a75c-ebbe7d419279", 25, 3, -1),
new AutoPositionActionFrame("e3333875-865c-4b9f-a35f-589ef7b56abb", 25, 5, -1),
},
AutoPositionAction.ActionTypeEnum.NA));
}
Best regards