-
Notifications
You must be signed in to change notification settings - Fork 118
Add an example using the script_command_interface #326
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 an example using the script_command_interface #326
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## torque_control #326 +/- ##
=================================================
Coverage ? 82.68%
=================================================
Files ? 1
Lines ? 231
Branches ? 0
=================================================
Hits ? 191
Misses ? 40
Partials ? 0
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
// Keep running all commands in a loop until g_running is set to false | ||
while (g_running) | ||
{ | ||
run_cmd("Setting tool voltage to 24V", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should call start and stop force mode as well
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As force mode needs quite a lot of arguments and might complain about singularities if the robot is in the wrong pose, I would rather skip it here. It's got its own example. But I can also add freedrive mode. I'll skip freedrive mode, as well, as that expects a special keepalive signal. That also has its own example.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make sense leaving it out then.
Co-authored-by: Mads Holm Peters <79145214+urmahp@users.noreply.github.com>
This adds an example for using the script_command interface. It basically came out of testing #323 manually.