1 #ifndef teensy_serial_h
2 #define teensy_serial_h
28 public:
void sendStates(
double *_joint_positions,
double *_joint_velocities,
double *_joint_torques);
void receiveControlCommands(double &_control_command_type, double *_control_commands)
Reads control command data available on the serial command and stores it.
unsigned char * tx_buffer
Transmit buffer.
void sendStates(double *_joint_positions, double *_joint_velocities, double *_joint_torques)
Sends the joint states to the serial line.
int tx_buffer_size
Transmit buffer size.
bool areControlCommandsAvailable()
Checks if there is any available data on the serial port.
int rx_buffer_size
Receive buffer size.
int number_of_motors
Number of motors.
TeensySerial(int _number_of_motors)
unsigned char * rx_buffer
Receive buffer.