AnimatLab  2
Test
FirmataDynamixelHingeServo.cs
1 using System;
2 using System.Collections.Generic;
3 using System.Linq;
4 using System.Text;
5 
6 namespace RoboticsGUI
7 {
8  namespace RobotIOControls
9  {
10  namespace Firmata
11  {
12 
13  public class FirmataDynamixelHingeServo : RoboticsGUI.RobotIOControls.DynamixelServo
14  {
15  public override string Description {get {return "Controls a Dynamixel servo motor for a hinge joint using a Firmata controller";}set { }}
16  public override string WorkspaceImageName {get {return "RoboticsGUI.Graphics.HingeServoSmall.gif";}}
17  public override string ButtonImageName {get {return "RoboticsGUI.Graphics.HingeServoLarge.gif";}}
18  public override string PartType {get { return "FirmataDynamixelHingeServo"; }}
19  public override string ModuleName { get { return "RoboticsAnimatSim"; } }
20  protected override Type GetLinkedPartDropDownTreeType() {return typeof(AnimatGUI.TypeHelpers.DropDownTreeEditorNoFirstSelect);}
21 
22  public FirmataDynamixelHingeServo(AnimatGUI.Framework.DataObject doParent)
23  : base(doParent)
24  {
25  m_strName = "Dynamixel Hinge Servo";
26 
27  m_aryCompatiblePartTypes.Clear();
28  m_aryCompatiblePartTypes.Add(typeof(AnimatGUI.DataObjects.Physical.Joints.Hinge));
29  }
30 
31  public override AnimatGUI.Framework.DataObject Clone(AnimatGUI.Framework.DataObject doParent, bool bCutData, AnimatGUI.Framework.DataObject doRoot)
32  {
33  FirmataDynamixelHingeServo doController = new FirmataDynamixelHingeServo(doParent);
34  return doController;
35  }
36 
37  }
38  }
39  }
40 }