REPY-2.0 1.0
Mechanical module for modular robotics
|
Default constructor. : BasicServo() { //-- Servo body dimensions: //--------------------------------------------------------------------------------- //-- Main dimensions: width = 12.7; length = 22.7; height = 27; //-- Leg dimensions: leg_h = 15.7; leg_x = 12; leg_y = 5; leg_z = 2.5; //-- Leg holes num_holes = 2; hole_r = 1.1; hole_x = 0; hole_y = 2.5; //-- Axis dimensions: axis_h = 2.5; axis_r = 4.7/2.0; axis_y = 17; //-- Horn placement: horn_dist_axis = 2.9; //-- Tolerances by default: width_tol = 0; length_tol = 0; height_tol = 0; //-- Color (blue): servo_color.push_back( 0); //-- Red servo_color.push_back( 0.); //-- Green servo_color.push_back( 1); //-- Blue servo_color.push_back( 1.0); //-- Alpha channel //-- Horn dimensions: //---------------------------------------------------------------------------------- set_horn( 1 ); //-- TowerPro SG90 servo specific dimensions: gearbox_h = 4.5; gearbox_big_r = 11.8 /2.0; gearbox_small_r = 5 / 2.0; gearbox_small_y = axis_y - 14.5 + gearbox_small_r + gearbox_big_r; rebuild(); } |