Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enforce Victor's velocity bounds before sending a joint command #20

Open
bsaund opened this issue Jan 20, 2021 · 5 comments
Open

Enforce Victor's velocity bounds before sending a joint command #20

bsaund opened this issue Jan 20, 2021 · 5 comments

Comments

@bsaund
Copy link
Contributor

bsaund commented Jan 20, 2021

See:

velocities = trunc(np.array(velocities), 3) # Kuka does not like sending small but non-zero velocity commands

If arm_robots sends a velocity command greater than the Kuka Controller's allowed command the Kuka controller will cause an "Internal Interpolation error`

@bsaund
Copy link
Contributor Author

bsaund commented Jan 20, 2021

I suspect this is why @PeterMitrano saw:
IMG_20210120_142357

@bsaund
Copy link
Contributor Author

bsaund commented Jan 20, 2021

I would first check if we are sending velocities outside of the bounds (e.g. logerror) and verify this is the cause

@umicharmlab
Copy link

I don't think it's an interpolation issue. For example, I found a particular command with joint 2 velocity above ~0.17 would cause the error. That's suspiciously 10x from the limits you recently set

@PeterMitrano
Copy link
Contributor

increasing the victor.max_velocity_scale_factor to anything above 0.10 breaks it. I would expect it to work at 1.0

@bsaund
Copy link
Contributor Author

bsaund commented May 11, 2021

This PR should make the API more obvious: #55

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants