AnimatLab  2
Test
FirmataDynamixelPrismaticServo.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 
14  {
15  public override string Description {get {return "Controls a Dynamixel servo motor for a prismatic joint using a Firmata controller";}set { }}
16  public override string WorkspaceImageName {get {return "RoboticsGUI.Graphics.PrismaticServoSmall.gif";}}
17  public override string ButtonImageName { get { return "RoboticsGUI.Graphics.PrismaticServoLarge.gif"; } }
18  public override string PartType {get { return "FirmataDynamixelPrismaticServo"; }}
19  public override string ModuleName { get { return "RoboticsAnimatSim"; } }
20  protected override Type GetLinkedPartDropDownTreeType() {return typeof(AnimatGUI.TypeHelpers.DropDownTreeEditorNoFirstSelect);}
21  public override bool IsHinge { get { return false; } }
22 
23  public FirmataDynamixelPrismaticServo(AnimatGUI.Framework.DataObject doParent)
24  : base(doParent)
25  {
26  m_strName = "Dynamixel Prismatic Servo";
27 
28  m_aryCompatiblePartTypes.Clear();
29  m_aryCompatiblePartTypes.Add(typeof(AnimatGUI.DataObjects.Physical.Joints.Prismatic));
30  }
31 
32  public override AnimatGUI.Framework.DataObject Clone(AnimatGUI.Framework.DataObject doParent, bool bCutData, AnimatGUI.Framework.DataObject doRoot)
33  {
35  return doController;
36  }
37 
38  }
39  }
40  }
41 }