|
TeensyNanoExoCode
|
class to store information related to joint. More...
#include <JointData.h>
Public Member Functions | |
| JointData (config_defs::joint_id id, uint8_t *config_to_send) | |
| void | reconfigure (uint8_t *config_to_send) |
| reconfigures the the joint data if the configuration changes after constructor called. | |
Public Attributes | |
| config_defs::joint_id | id |
| MotorData | motor |
| ControllerData | controller |
| float | torque_reading |
| bool | is_left |
| bool | flip_direction |
| bool | is_used |
| bool | calibrate_torque_sensor |
| bool | calibrate_angle_sensor |
| float | position |
| float | velocity |
| float | joint_position |
| float | joint_global_angle |
| float | prev_joint_position |
| float | joint_velocity |
| const float | joint_position_alpha = 0.1f |
| const float | joint_velocity_alpha = 0.1f |
class to store information related to joint.
| JointData::JointData | ( | config_defs::joint_id | id, |
| uint8_t * | config_to_send | ||
| ) |
| void JointData::reconfigure | ( | uint8_t * | config_to_send | ) |
reconfigures the the joint data if the configuration changes after constructor called.
| configuration | array |
| bool JointData::calibrate_angle_sensor |
flag for if we should calibrate the angle sensor.
| bool JointData::calibrate_torque_sensor |
flag for if we should calibrate the torque sensor.
| ControllerData JointData::controller |
data for the controller attached to the joint
| bool JointData::flip_direction |
if true invert the current to the motor and the position/velocity readings
| config_defs::joint_id JointData::id |
id of the joint
| bool JointData::is_left |
if the leg is left
| bool JointData::is_used |
stores if the joint is used, joint is skipped if it is not used
| float JointData::joint_global_angle |
The angle of the joint relative to the ground
| float JointData::joint_position |
The position of the joint, after any transmission
| const float JointData::joint_position_alpha = 0.1f |
| float JointData::joint_velocity |
| const float JointData::joint_velocity_alpha = 0.1f |
| MotorData JointData::motor |
data for the motor attached to the joint
| float JointData::position |
The position of the joint, this should be motor position with compensated for gearing.
| float JointData::prev_joint_position |
The position of the joint, after any transmission
| float JointData::torque_reading |
calibrated reading from the torque sensor
| float JointData::velocity |
The velocity of the joint, this should be motor velocity with compensated for gearing.