-
Notifications
You must be signed in to change notification settings - Fork 87
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
send_joint_speeds does not work as expected #3
Comments
@nsaif-kinova Here is the issue we referenced earlier. |
Hi @Achllle ! Thanks for filling the issue template, it really helps troubleshooting your problem! It seems the SendJointSpeedsCommand RPC call was not implemented inside the arm, although it is not documented as such. Hence, the ExecuteAction call you make will not work either. I will make sure the documentation gets updated to include this detail. Although the function is unsupported for now, I can explain the solution to the build problem you are facing. I'll explain it for the C++ example but it naturally works for the Python too. Basically, the reach_joint_angles and send_joint_speeds Actions are not built the same way.
The C++ code snippet to control the arm with a send_joint_speeds Action would look like :
but again, won't work until the function is implemented inside the arm. Sorry for the inconvenience and I will make sure to update this issue when the arm's software package will include this functionality. Cheers, Alex |
Hi @Achllle , The SendJointSpeedsCommand function is now available with the 2.0 release. Best, |
Description
send_joint_speeds action doesn't work using code based on examples provided in
api_cpp
andapi_python
and using the auto-generated documentation as a referenceSide note: issue template didn't load automatically.
Version
KortexAPI : 1.1.3
Kortex Device : Jaco GEN3 7DOF
Steps to reproduce
Python
c++
Same as Python steps, except with the api_cpp example.
Code example
Note: I didn't change the names of the variables
Python
When I convert any joint angle reference to joint speed references 1:1, i.e.
I get an
AttributeError: 'JointSpeeds' object has no attribute 'joint_angles'
. When I comment out the second line in the example above and replace it with the commented line right below it, I don't get the AttributeError (which I believe shouldn't have happened in the first place) and the code executes but doesn't move the last joint.c++
in
angularMovement()
:This results in
Again, commenting out the first line in the for-loop and replacing with the commented line results in a successful build, but results in a segfault during execution on the robot.
Expected behavior
The final joint rotates at ~5 deg/s for 5 seconds
The text was updated successfully, but these errors were encountered: