REPY-2.0 1.0
Mechanical module for modular robotics
|
Mechanic module for modular robots. More...
#include <repy_module.h>
Public Member Functions | |
REPY_module (BasicServo &servo, BasicSquaredPCB &pcb) | |
Constructor. | |
void | configRender (bool show_servo=true, bool show_assembly=true, bool show_lower=true, bool show_upper=true) |
Configure how the module will be shown. | |
void | configHorn (int num_arms, int cut_part=20.5/2.0-3) |
Choose the type of horn wanted for the servo. | |
Component | get_lower_part () |
Returns the lower part of the module. | |
Component | get_upper_part () |
Returns the upper part of the module. | |
BasicServo * | get_servo () |
Returns a pointer to the servo used in the module. | |
BasicSquaredPCB * | get_pcb () |
Returns a pointer to the PCB used in the module. | |
Component | get_fake_axis () |
Returns the fake axis screw used in the module. | |
Component | get_fake_axis_with_tol () |
Returns the fake axis screw with the tolerance used in the module. | |
double | get_lower_base_thickness () |
Returns the thickness of the base of the lower part of the module. | |
double | get_lower_front_ear_thickness () |
Returns the thickness of the front ear of the lower part of the module. | |
double | get_lower_back_ear_thickness () |
Returns the thickness of the back ear of the lower part of the module. | |
double | get_lower_ear_shift () |
Returns the distance between the base and the tangent line on the ear. | |
double | get_lower_ear_radius () |
Returns the radius of the upper rounded part of the ear. | |
double | get_lower_screw_safe () |
Returns the space around the drills of the base for the screw. | |
double | get_lower_border_safe () |
Returns the space around the border to keep when making the base holes. | |
double | get_upper_base_thickness () |
Returns the thickness of the base of the upper part of the module. | |
double | get_upper_front_ear_thickness () |
Returns the thickness of the front ear of the upper part of the module. | |
double | get_upper_back_ear_thickness () |
Returns the thickness of the back ear of the upper part of the module. | |
double | get_upper_ear_shift () |
Returns the distance between the base and the tangent line on the ear. | |
double | get_upper_ear_radius () |
Returns the radius of the upper rounded part of the ear. | |
double | get_upper_screw_safe () |
Returns the space around the drills of the base for the screw. | |
double | get_upper_border_safe () |
Returns the space around the border to keep when making the base holes. | |
double | get_body_servo_x_tol () |
Returns the clearance to insert the servo, x axis. | |
double | get_body_servo_y_tol () |
Returns the clearance to insert the servo, y axis. | |
double | get_ear_clearance_tol () |
Returns the clearance between touching ears. | |
double | get_fake_axis_tol () |
Returns the clearance for the fake axis. | |
bool | get_show_servo () |
Returns the visibility of the servo. | |
bool | get_show_assembly () |
Returns true if assembly model was selected. | |
bool | get_show_lower () |
Returns if lower part is show when print model is selected. | |
bool | get_show_upper () |
Returns if upper part is show when print model is selected. | |
double | get_side () |
Returns the total side of the module (board + safe). | |
double | get_central_part () |
Returns the dimension used to center the servo and ears on the module. | |
Protected Member Functions | |
virtual Component | build () |
Builds the REPY module. | |
Private Member Functions | |
Component | lower_part () |
Generates the lower part of the module. | |
Component | upper_part () |
Generates the upper part of the module. | |
Component | make_ear (double base, double height, double thickness, double shift, double radius) |
Generates a 'ear'. | |
Private Attributes | |
Component | lower |
Lower part of the module. | |
Component | upper |
Upper part of the module. | |
BasicServo * | servo |
Pointer that stores the position in memory of a BasicServo. | |
BasicSquaredPCB * | pcb |
Pointer that stores the position in memory of a BasicSquaredPCB. | |
Component | fake_axis |
Model of the screw that serves as axis for the back part of the servo. | |
Component | fake_axis_with_tol |
Model of the screw that servos as axis for the back part of the servo, with some clearance to allow it to rotate. | |
double | board_safe |
Space around the PCB to keep it safe. | |
double | lower_base_thickness |
Thickness of the base of the lower part of the module. | |
double | lower_front_ear_thickness |
Thickness of the front ear of the lower part of the module. | |
double | lower_back_ear_thickness |
Thickness of the back ear of the lower part of the module. | |
double | lower_ear_shift |
Distance between the base and the tangent line on the ear. | |
double | lower_ear_radius |
Radius of the upper rounded part of the ear. | |
double | lower_screw_safe |
Space around the drills of the base for the screw. | |
double | lower_border_safe |
Space around the border to keep when making the base holes. | |
double | upper_base_thickness |
Thickness of the base of the upper part of the module. | |
double | upper_front_ear_thickness |
Thickness of the front ear of the upper part of the module. | |
double | upper_back_ear_thickness |
Thickness of the back ear of the upper part of the module. | |
double | upper_ear_shift |
Distance between the base and the tangent line on the ear. | |
double | upper_ear_radius |
Radius of the upper rounded part of the ear. | |
double | upper_screw_safe |
Space around the drills of the base for the screw. | |
double | upper_border_safe |
Space around the border to keep when making the base holes. | |
double | body_servo_x_tol |
Clearance to insert the servo, x axis. | |
double | body_servo_y_tol |
Clearance to insert the servo, y axis. | |
double | ear_clearance_tol |
Clearance between touching ears. | |
double | fake_axis_tol |
Clearance for the fake axis. | |
bool | show_servo |
If true, generates model with servo. | |
bool | show_assembly |
If true, shows assembly of module, if false, generates print-ready model. | |
bool | show_lower |
If true, and if print model is selected, generates the lower part of the module. | |
bool | show_upper |
If true, and if print model is selected, genrates the upper part of the module. | |
double | side |
Total side of the module (board + safe). | |
double | central_part |
Dimension used to center the servo and ears on the module. |
Mechanic module for modular robots.
This module accepts a BasicServo object and a BasicSquaredPCB object and generates a REPY module according to their dimensions.