Go to the documentation of this file.00001
00002
00003
00004
00005
00006 #include "CDxlGeneric.h"
00007 #include "dynamixel/Dynamixel.h"
00008 #include "3mxl/3mxl.h"
00009
00016 CDxlGeneric* gDxlCreate(const std::string& dxlTypeStr)
00017 {
00018 CDxlGeneric* newDxl = NULL;
00019
00020 if (dxlTypeStr == "Robotis_RXxx")
00021 newDxl = new CDynamixel();
00022 else if (dxlTypeStr == "3MXL")
00023 newDxl = new C3mxl();
00024 else
00025 printf("[gDxlCreate] Unknown servo type \"%s\"!\n", dxlTypeStr.c_str());
00026
00027 return newDxl;
00028 }