Haptic Controller
Loading...
Searching...
No Matches
finger_viz.py File Reference

Go to the source code of this file.

Namespaces

namespace  finger_viz
 

Functions

 finger_viz.value_by_label (label)
 

Variables

str finger_viz.COM_PORT = "COM13"
 
int finger_viz.TRAILING_POINTS = 16
 
int finger_viz.MIN_MESSAGE_BYTES = 16
 
float finger_viz.FORCE_SCALING = 0.02
 
 finger_viz.ser
 
list finger_viz.x_list = []
 
list finger_viz.z_list = []
 
list finger_viz.x_mirror_list = []
 
list finger_viz.z_mirror_list = []
 
 finger_viz.pp
 
 finger_viz.alpha
 
 finger_viz.bytes_to_read = ser.in_waiting
 
 finger_viz.line = ser.read(bytes_to_read).decode("utf-8")
 
 finger_viz.segments = line.split()
 
 finger_viz.x = value_by_label("pos.at(0)")
 
 finger_viz.z = value_by_label("pos.at(2)")
 
 finger_viz.x_mirror = value_by_label("mirror_pos_0")
 
 finger_viz.z_mirror = value_by_label("mirror_pos_2")
 
int finger_viz.F_stiffness_x = 0
 
int finger_viz.F_stiffness_z = 0
 
int finger_viz.F_damping_x = 0
 
int finger_viz.F_damping_z = 0
 
int finger_viz.F_kx = 0
 
int finger_viz.F_kz = 0