squirrel-project / squirrel_driver

0 stars 14 forks source link

neck_pan/tilt_link changes from before the hardware changes #154

Closed bajo closed 6 years ago

bajo commented 6 years ago

@ipa-nhg To make the viewcontroller behave correctly I had to change the direction of the calculated relative pan and tilt. I assume this is due to the orientation changes when updating the urdf file. I think the orientation of the neck_pan_link and the neck_tilt_link is rotated compared to the old links. Is this something intentionally? Or is the direction of the motor movement in the other direction compared to the dynamixel pan/tilt from before? Might be important for others to know as well.

ipa-nhg commented 6 years ago

I usually tried to use always the same convection, the z defines the axis of the rotation and the right hand rule the movement direction. During the test remotely I saw that the motors of the shell didn't follow the convention and I just changed the direction of the motor https://github.com/squirrel-project/squirrel_common/commit/f1c740e0fe93def95517e7b251e73d9eb9bd4a60 , the other possibility is change the joint orientation, do you prefer this option? Feel free to modify the URDF or let me know which changes are needed

bajo commented 6 years ago

It was faster to change the code of the viewcontroller. Moves to the desired directions again.