REPY-2.0 1.0
Mechanical module for modular robotics
|
Default constructor. : BasicServo() { //-- Servo body dimensions: //--------------------------------------------------------------------------------- //-- Main dimensions: width = 20.5; length = 41; height = 39.5; //-- Leg dimensions: leg_h = 27; leg_x = 20; leg_y = 6.5; leg_z = 4; //-- Leg holes num_holes = 4; hole_r = 2; hole_x = 5; hole_y = 4; //-- Axis dimensions: axis_h = 4; axis_r = 3; axis_y = 30; //-- Horn placement: horn_dist_axis = 4; //-- Tolerances by default: width_tol = 0; length_tol = 0; height_tol = 0; //-- Color (black): servo_color.push_back( 0.5); //-- Red servo_color.push_back( 0.5); //-- Green servo_color.push_back( 0.5); //-- Blue servo_color.push_back( 1.0); //-- Alpha channel //-- Horn dimensions: //---------------------------------------------------------------------------------- set_horn( 0 ); rebuild(); } |