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

Add interface.py #35

Merged
merged 1 commit into from
Feb 11, 2024
Merged

Add interface.py #35

merged 1 commit into from
Feb 11, 2024

Conversation

iory
Copy link
Owner

@iory iory commented Feb 11, 2024

 ~/ros/kxr  rosrun kxr_controller interface.py --viewer trimesh
Python 3.8.10 (default, Nov 22 2023, 10:22:35)
Type 'copyright', 'credits' or 'license' for more information
IPython 8.12.3 -- An enhanced Interactive Python. Type '?' for help.

In [1]: ri.servo_on()

In [2]: ri.angle_vector(robot_model.init_pose(), 1)
Out[2]: array([0., 0., 0., 0., 0., 0., 0., 0., 0.], dtype=float32)

In [3]: robot_model.rarm_joint2_w.joint_angle(0.9)
Out[3]: 0.9

In [4]: ri.angle_vector(robot_model.angle_vector(), 0.1)
Out[4]: array([0. , 0.9, 0. , 0. , 0. , 0. , 0. , 0. , 0. ], dtype=float32)

In [5]: ri.angle_vector(robot_model.init_pose(), 1)
Out[5]: array([0., 0., 0., 0., 0., 0., 0., 0., 0.], dtype=float32)

In [6]: ri.wait_interpolation()
Out[6]: True

@iory iory merged commit 79aa508 into master Feb 11, 2024
3 checks passed
@iory iory deleted the interface branch February 11, 2024 04:53
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

Successfully merging this pull request may close these issues.

1 participant