- In Formant, in the upper-left corner, open the menu and click Settings >> Commands.
- Add a command which calls
formant.run_script. Set Enable parameters to ON. In Command parameters, enter the absolute path of the script.
There are three ways to call this command during teleoperation:
Navigate to your device and start a teleoperation session.
In the bottom-right corner, click the three dots >> Configure device.
Set one of the views to Command buttons.
Click the pencil icon next to the Command buttons and enter the names of the commands you would like to send from the module. This will create a module where you press a button to send the command.
Similar to the above, you can set one of the views to the Commands module. This requires no extra configuration, as it will auto-populate a drop down with the commands available to the device.
You can call a command from the teleop screen natively by pressing the three dots in the corner and clicking Issue Command (or Shift+I as a shortcut).
Updated 3 months ago