REPY-2.0 1.0
Mechanical module for modular robotics
|
Default constructor. : BasicServo() { //-- Servo body dimensions: //--------------------------------------------------------------------------------- //-- Main dimensions: width = 20.; length = 40.5; height = 37.5; //-- Leg dimensions: leg_h = 27; leg_x = 20; leg_y = 7.5; leg_z = 4; //-- Leg holes num_holes = 4; hole_r = 4.5/2.0; hole_x = 5; hole_y = 3; //-- Axis dimensions: axis_h = 4.5; 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(); } |