[4de1c7]: / app / config / BasisFirstFrame.py

Download this file

17 lines (11 with data), 368 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
import json
import numpy as np
class BasisFirstFrame:
def __init__(self):
self.joint_values = None
self.load('config/basis_first_frame.json')
def load(self, filename):
with open(filename) as o:
self.joint_values = json.load(o)
def get_basis(self, joint_name):
return np.array(self.joint_values[joint_name])