REPY-2.0 1.0
Mechanical module for modular robotics
|
00001 //------------------------------------------------------------------------------ 00002 //-- Tower Pro SG90 servo 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 00033 #ifndef TOWERPROSG90SERVO_H 00034 #define TOWERPROSG90SERVO_H 00035 00036 00037 #include "basicservo.h" 00038 00043 class TowerProSG90servo: public BasicServo 00044 { 00045 public: 00047 TowerProSG90servo(); 00048 00049 //-- Added data interface: 00050 double get_gearbox_h(); 00051 double get_gearbox_big_r(); 00052 double get_gearbox_small_r(); 00053 double get_gearbox_small_y(); 00054 00055 double get_horn_arm_r_small(); 00056 double get_horn_arm_dist_small(); 00057 00058 protected: 00062 virtual void update_horn(); 00063 00064 //-- Reimplement the servo creation function 00065 virtual Component build(); 00066 00067 //-- Reimplement the servo horn creation function 00068 virtual void make_horn(); 00069 00070 //-- Other needed parameter to improve the aspect of the servo: 00071 double gearbox_h; 00072 double gearbox_big_r; 00073 double gearbox_small_r; 00074 double gearbox_small_y; 00075 00076 //-- New parameters for 4-arms horn 00077 double horn_arm_r_small; 00078 double horn_arm_dist_small; 00079 }; 00080 00081 #endif // TOWERPROSG90SERVO_H