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