Cheetah Software
1.0
|
#include <ti_boardcontrol.h>
Public Member Functions | |
TI_BoardControl ()=default | |
void | init (float side_sign) |
void | run_ti_board_iteration () |
void | reset_ti_board_data () |
void | reset_ti_board_command () |
void | set_link_lengths (float l1, float l2, float l3) |
Public Attributes | |
TiBoardCommand | command |
TiBoardData | data_structure |
TiBoardData * | data |
Private Member Functions | |
void | kinematics (const float side_sign, const float q[3], const float dq[3], float *p, float *v, float J[][3]) |
void | impedanceControl (const float side_sign, const float q[3], const float dq[3], const float position_des[3], const float velocity_des[3], const float kp[3], const float kd[3], const float force_bias[3], const float torque_bias[3], float *position, float *velocity, float *force, float *torque) |
Private Attributes | |
float | _side_sign |
float | _l1 |
float | _l2 |
float | _l3 |
bool | link_lengths_set = false |
Definition at line 33 of file ti_boardcontrol.h.
|
default |
|
private |
Definition at line 71 of file ti_boardcontrol.cpp.
References kinematics().
void TI_BoardControl::init | ( | float | side_sign | ) |
Definition at line 7 of file ti_boardcontrol.cpp.
References _side_sign, data, and data_structure.
|
private |
void TI_BoardControl::reset_ti_board_command | ( | ) |
Definition at line 28 of file ti_boardcontrol.cpp.
References command, data_structure, TiBoardCommand::kd, TiBoardCommand::kp, TiBoardCommand::position_des, TiBoardData::tau_des, and TiBoardCommand::velocity_des.
void TI_BoardControl::reset_ti_board_data | ( | ) |
Definition at line 21 of file ti_boardcontrol.cpp.
References data_structure, TiBoardData::ethercat_count_ti, TiBoardData::loop_count_ti, TiBoardData::microtime_ti, and TiBoardData::tau_des.
void TI_BoardControl::run_ti_board_iteration | ( | ) |
Definition at line 39 of file ti_boardcontrol.cpp.
References _side_sign, command, data, TiBoardData::dq, TiBoardCommand::enable, TiBoardData::force, TiBoardCommand::force_ff, impedanceControl(), TiBoardCommand::kd, kinematics(), TiBoardCommand::kp, link_lengths_set, TiBoardData::loop_count_ti, TiBoardCommand::max_torque, TiBoardData::position, TiBoardCommand::position_des, TiBoardData::q, TiBoardData::tau_des, TiBoardCommand::tau_ff, TiBoardData::velocity, and TiBoardCommand::velocity_des.
void TI_BoardControl::set_link_lengths | ( | float | l1, |
float | l2, | ||
float | l3 | ||
) |
Definition at line 14 of file ti_boardcontrol.cpp.
References _l1, _l2, _l3, and link_lengths_set.
|
private |
Definition at line 58 of file ti_boardcontrol.h.
|
private |
Definition at line 58 of file ti_boardcontrol.h.
|
private |
Definition at line 58 of file ti_boardcontrol.h.
|
private |
Definition at line 57 of file ti_boardcontrol.h.
TiBoardCommand TI_BoardControl::command |
Definition at line 41 of file ti_boardcontrol.h.
TiBoardData* TI_BoardControl::data |
Definition at line 45 of file ti_boardcontrol.h.
TiBoardData TI_BoardControl::data_structure |
Definition at line 42 of file ti_boardcontrol.h.
|
private |
Definition at line 59 of file ti_boardcontrol.h.