-
Notifications
You must be signed in to change notification settings - Fork 142
Add set_target_payload support to ScriptCommandInterface #515
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
Changes from 5 commits
2d1074a
8d15464
2cfc96c
5a79f9e
0bc1de0
1cf469a
8e57d54
e067c0c
d066e53
a86f7b3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -67,6 +67,7 @@ FT_RTDE_INPUT_ENABLE = 8 | |
| SET_GRAVITY = 9 | ||
| SET_TCP_OFFSET = 10 | ||
| SET_FRICTION_SCALES = 11 | ||
| SET_TARGET_PAYLOAD = 12 | ||
| SCRIPT_COMMAND_DATA_DIMENSION = 28 | ||
|
|
||
| FREEDRIVE_MODE_START = 1 | ||
|
|
@@ -938,6 +939,17 @@ thread script_commands(): | |
| friction_compensation_mode = FRICTION_COMP_MODE_FRICTION_SCALES | ||
| viscous_scale = [raw_command[2] / MULT_jointstate, raw_command[3] / MULT_jointstate, raw_command[4] / MULT_jointstate, raw_command[5] / MULT_jointstate, raw_command[6] / MULT_jointstate, raw_command[7] / MULT_jointstate] | ||
| coulomb_scale = [raw_command[8] / MULT_jointstate, raw_command[9] / MULT_jointstate, raw_command[10] / MULT_jointstate, raw_command[11] / MULT_jointstate, raw_command[12] / MULT_jointstate, raw_command[13] / MULT_jointstate] | ||
| elif command == SET_TARGET_PAYLOAD: | ||
| mass = raw_command[2] / MULT_jointstate | ||
| cog = [raw_command[3] / MULT_jointstate, raw_command[4] / MULT_jointstate, raw_command[5] / MULT_jointstate] | ||
| inertia = [raw_command[6] / MULT_jointstate, raw_command[7] / MULT_jointstate, raw_command[8] / MULT_jointstate, raw_command[9] / MULT_jointstate, raw_command[10] / MULT_jointstate, raw_command[11] / MULT_jointstate] | ||
| transition_time = raw_command[12] / MULT_jointstate | ||
| {% if ROBOT_SOFTWARE_VERSION >= v5.10.0 %} | ||
| set_target_payload(mass, cog, inertia, transition_time) | ||
| {% else %} | ||
| set_payload(mass, cog) | ||
| textmsg("PolyScope < 5.10.0. Inertia and transition_time ignored.") | ||
| {% endif %} | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Missing PolyScope 3.15 gateMedium Severity
Additional Locations (1)Reviewed by Cursor Bugbot for commit e067c0c. Configure here. |
||
| elif command == FT_RTDE_INPUT_ENABLE: | ||
| if raw_command[2] == 0: | ||
| enabled = False | ||
|
|
||


Uh oh!
There was an error while loading. Please reload this page.