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

Go to the source code of this file.

Namespaces

namespace  thumb_viz
 

Functions

 thumb_viz.value_by_label (label)
 

Variables

str thumb_viz.COM_PORT = "COM11"
 
int thumb_viz.TRAILING_POINTS = 16
 
int thumb_viz.MIN_MESSAGE_BYTES = 16
 
 thumb_viz.ser
 
list thumb_viz.joint_0_list = []
 
list thumb_viz.joint_1_list = []
 
list thumb_viz.joint_0_mirror_list = []
 
list thumb_viz.joint_1_mirror_list = []
 
 thumb_viz.pp
 
 thumb_viz.alpha
 
 thumb_viz.bytes_to_read = ser.in_waiting
 
 thumb_viz.line = ser.read(bytes_to_read).decode("utf-8")
 
 thumb_viz.segments = line.split()
 
 thumb_viz.joint_0 = value_by_label("joint_thetas.at(0)")
 
 thumb_viz.joint_1 = value_by_label("joint_thetas.at(1)")
 
 thumb_viz.joint_0_mirror = value_by_label("mirror_pos_0")
 
 thumb_viz.joint_1_mirror = value_by_label("mirror_pos_2")
 
int thumb_viz.joint_0_torque = 0
 
int thumb_viz.joint_1_torque = 0