![]() |
Bioscara
DALSA's DIY SCARA Robot Arm.
|
Go to the source code of this file.
Macros | |
| #define | JOINT2ACTUATOR(in, reduction, offset) (reduction * (in - offset)) |
| Macro for a simple transmission from joint units to actuator units. | |
| #define | ACTUATOR2JOINT(in, reduction, offset) (in / reduction + offset) |
| Macro for a simple transmission from actuator units to joint units. | |
| #define | M_PI 3.14159265358979323846 |
| pi | |
| #define | RAD2DEG(rad) (rad / M_PI * 180) |
| Macro to convert radians to degree. | |
| #define | DEG2RAD(deg) (deg * M_PI / 180) |
| Macro to convert degree to radians. | |
| #define ACTUATOR2JOINT | ( | in, | |
| reduction, | |||
| offset | |||
| ) | (in / reduction + offset) |
Macro for a simple transmission from actuator units to joint units.
The translation is based on the ros2_control transmission interface, simple transmission. For position reduction and offset need to be used.
For velocity and acceleration only use reduction and NO offset
For effort/torque use 1/reduction and NO offset
| #define DEG2RAD | ( | deg | ) | (deg * M_PI / 180) |
Macro to convert degree to radians.
| #define JOINT2ACTUATOR | ( | in, | |
| reduction, | |||
| offset | |||
| ) | (reduction * (in - offset)) |
Macro for a simple transmission from joint units to actuator units.
The translation is based on the ros2_control transmission interface, simple transmission. For position reduction and offset need to be used.
For velocity and acceleration only use reduction and NO offset
For effort/torque use 1/reduction and NO offset
| #define M_PI 3.14159265358979323846 |
pi
| #define RAD2DEG | ( | rad | ) | (rad / M_PI * 180) |
Macro to convert radians to degree.