AnimatLab  2
Test
DynamixelUSBHingeServo.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  public override string Description {get {return "Controls a Dynamixel servo motor for a hinge joint using a USB to UART 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 "DynamixelUSBHinge"; }}
19 
20  public DynamixelUSBHingeServo(AnimatGUI.Framework.DataObject doParent)
21  : base(doParent)
22  {
23  m_strName = "Hinge Servo";
24 
25  m_aryCompatiblePartTypes.Clear();
26  m_aryCompatiblePartTypes.Add(typeof(AnimatGUI.DataObjects.Physical.Joints.Hinge));
27  }
28 
29  public override AnimatGUI.Framework.DataObject Clone(AnimatGUI.Framework.DataObject doParent, bool bCutData, AnimatGUI.Framework.DataObject doRoot)
30  {
31  DynamixelUSBHingeServo doController = new DynamixelUSBHingeServo(doParent);
32  return doController;
33  }
34  }
35  }
36  }
37 }