sleepzero
lvl.1
United States
Offline
|
ceinem Posted at 2021-10-28 07:23
Yes, you need some kind of Can to USB converter, no chance without one. I used a device called canUSB. But I also got it working using an Arduino and a special CAN shield for it.
My Code is implemented using ROS and a CAN package for ROS. Adjusting it for pure python without ROS would be a bit of work, but absolutely doable.
Thanks for that, super helpful!
I was able to get it working with the USB CAN analyzer + python-can (hints: frame data size needs to be 8 bytes or less, and a small delay needs to be inserted between each frame. e.g. 5ms, maybe less, haven't tuned it yet)
Were you able to get the set speed operation to work? I expected to call set speed, then set position, and have the position set at the declared speed, but instead when I call set speed, it immediately sets the position as a delta of 1/2 the speed. e.g. if I set the yaw speed to 3600, it would immediately rotate 180 degrees -- which was -- unexpected.
I realize the set position operation has a time of operation byte, but it seems to be limited. I can't get the arm to move as fast I'd like.
|
|