REPY-2.0 1.0
Mechanical module for modular robotics
|
00001 //------------------------------------------------------------------------------ 00002 //-- Basic squared PCB 00003 //------------------------------------------------------------------------------ 00004 //-- This file belongs to the REPY-2.0 module project: 00005 //-- 00006 //-- · http://www.dsquaredrobotics.com/wiki/index.php?title=REPY-2.0 00007 //-- 00008 //-- 00009 //-- REPY-2.0 was designed using the 00ML (Object-Oriented Mechanics Library). 00010 //-- More info about the OOML at: 00011 //-- · http://iearobotics.com/oomlwiki/doku.php 00012 //-- 00013 //-- REPY-2.0 concept is deeply based on Juan Gonzalez-Gomez REPY module. More 00014 //-- info about the original REPY at: 00015 //-- · http://www.thingiverse.com/thing:13442 00016 //-- · http://www.iearobotics.com/wiki/index.php?title=M%C3%B3dulos_REPY-1 00017 //-- 00018 //------------------------------------------------------------------------------ 00019 //-- Author: David Estevez (DEF) 00020 //-- 00021 //-- Released under the GPL license (more info on LICENSE.txt file) 00022 //------------------------------------------------------------------------------ 00023 00035 #ifndef BASICSQUAREDPCB_H 00036 #define BASICSQUAREDPCB_H 00037 00038 #include <ooml/core.h> 00039 #include <ooml/components.h> 00040 00044 class BasicSquaredPCB : public AbstractPart 00045 { 00046 public: 00048 BasicSquaredPCB( double thickness, double side, double drill_diam, double drill_x, double drill_y); 00049 00050 //-- Data interface: 00051 //----------------------------------------------------------- 00053 double get_thickness(); 00055 double get_side(); 00057 double get_drill_diam(); 00059 double get_drill_x(); 00061 double get_drill_y(); 00062 00063 protected: 00064 virtual Component build(); 00065 00066 private: 00068 BasicSquaredPCB(); 00069 00070 //-- Dimensions 00071 //--------------------------------------------------------- 00075 double thickness; 00076 00080 double side; 00081 00085 double drill_diam; 00086 00090 double drill_x; 00091 00095 double drill_y; 00096 00097 }; 00098 00099 00100 #endif // BASICSQUAREDPCB_H