Add TODO
This commit is contained in:
parent
4a884fdc11
commit
d307d7d57e
@ -126,7 +126,7 @@ class GraspController:
|
|||||||
e_t = x_d.translation - x.translation
|
e_t = x_d.translation - x.translation
|
||||||
e_n = (x.translation - self.view_sphere.center) * (self.view_sphere.r - r) / r
|
e_n = (x.translation - self.view_sphere.center) * (self.view_sphere.r - r) / r
|
||||||
linear = 1.0 * e_t + 6.0 * (r < self.view_sphere.r) * e_n
|
linear = 1.0 * e_t + 6.0 * (r < self.view_sphere.r) * e_n
|
||||||
scale = np.linalg.norm(linear)
|
scale = np.linalg.norm(linear) # TODO can be zero if x_d == x
|
||||||
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 = 0.5 * angular.as_rotvec()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user