Update angular velocity gain
This commit is contained in:
parent
406c53b309
commit
e521ec4b0f
@ -131,7 +131,7 @@ class GraspController:
|
|||||||
scale = np.linalg.norm(linear) + 1e-6
|
scale = np.linalg.norm(linear) + 1e-6
|
||||||
linear *= np.clip(scale, 0.0, self.linear_vel) / scale
|
linear *= np.clip(scale, 0.0, self.linear_vel) / scale
|
||||||
angular = self.view_sphere.get_view(theta, phi).rotation * x.rotation.inv()
|
angular = self.view_sphere.get_view(theta, phi).rotation * x.rotation.inv()
|
||||||
angular = 0.5 * angular.as_rotvec()
|
angular = 1.0 * angular.as_rotvec()
|
||||||
return np.r_[linear, angular]
|
return np.r_[linear, angular]
|
||||||
|
|
||||||
def execute_grasp(self, grasp):
|
def execute_grasp(self, grasp):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user