tried to implement arm rotation with quarternions
This commit is contained in:
@@ -65,7 +65,6 @@ def jacobian():
|
||||
|
||||
return jacobian
|
||||
|
||||
|
||||
def pseudo_inverse(jacobian):
|
||||
return np.linalg.pinv(jacobian)
|
||||
|
||||
@@ -86,18 +85,21 @@ def reference_generator(p_d)
|
||||
|
||||
names = "LArm"
|
||||
useSensors = False
|
||||
commandAngles = motionProxy.getAngles(names, useSensors)
|
||||
commandAnglesLArm = motionProxy.getAngles(names, useSensors)
|
||||
|
||||
names = "RArm"
|
||||
useSensors = False
|
||||
commandAngles = motionProxy.getAngles(names, useSensors)
|
||||
#names = "RArm"
|
||||
#useSensors = False
|
||||
#commandAngles = motionProxy.getAngles(names, useSensors)
|
||||
|
||||
goal_angleL = commandAnglesLArm + (angular_velocity * 5)
|
||||
|
||||
|
||||
goal_angle = mom_angle + (angular_velocity * 5)
|
||||
# return desired joint position and speed
|
||||
|
||||
|
||||
|
||||
return
|
||||
return goal_angleL, commandAnglesLArm
|
||||
|
||||
|
||||
|
||||
def movement(e)
|
||||
|
||||
Reference in New Issue
Block a user