DxlClassFactory.hpp
Go to the documentation of this file.
00001 // Dynamixel control code - header file
00002 // Copyright (c) 2008 Erik Schuitema, Eelko van Breda
00003 // Delft University of Technology
00004 // www.dbl.tudelft.nl
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 }


threemxl
Author(s):
autogenerated on Fri Aug 28 2015 13:21:08