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

Replace the "hardcoded" python code inside index.js with a python API #9

Open
guyschneider opened this issue Dec 3, 2020 · 1 comment

Comments

@guyschneider
Copy link

No description provided.

@tomerbg2911
Copy link
Contributor

I wrote the Python API on liquid_handling_methods.py. Your job is to integrate the use of this code inside the blockly blocks.

example: For the "move to" block, instead of the hard coded string:

\static\js\app.js

var code = "dict_args = " + value_position + " \n";
code += "dict_args[\'wait\'] = True \n";
code += "swift.set_position(**dict_args)\n";
code += '\n';

we instead should send the cleaner string using the API:

var code = "robot_move(swift=swift, position=value_position)"

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

No branches or pull requests

2 participants