You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, for a project without logic, actions can be specified within the project, but are ignored during the build process. The intended state is to generate a class for them, which can be used during manual programming within the main script. For a project with logic, the main script currently looks like this:
defmain(res: Resources) ->None:
aps=ActionPoints(res)
aubo: Aubo=res.objects['a05cf574591442109d5636bd8312026b']
random_actions: RandomActions=res.objects['d8a5065176d679c1c7cd5aee6984955a']
time_actions: TimeActions=res.objects['1c7cd5aee6984955ad8a5065176d679c']
whileTrue:
aubo.move(
'EE_Gripper',
aps.global_ap.poses.default,
MoveTypeEnum.LINE,
0.5,
0.5,
True,
an='move')
rand_interval=random_actions.random_double(0, 1, an='generate_random_double')
time_actions.sleep(rand_interval, an='sleep') # example of how action can use results of some previous actionif (__name__=='__main__'):
try:
withResources() asres:
main(res)
exceptExceptionase:
print_exception(e)
For a project without logic, there probably won't be support for the link parameter type (usage of previous results). Then, the main script could look like this:
For a project without logic, there probably won't be support for the link parameter type (usage of previous results).
Without the ability to use the previous result, the Action class is quite pointless for Python developers. In general, scripting should be for difficult projects that can't be completely created in AREditor, and these ones will require that.
Currently, for a project without logic, actions can be specified within the project, but are ignored during the build process. The intended state is to generate a class for them, which can be used during manual programming within the main script. For a project with logic, the main script currently looks like this:
For a project without logic, there probably won't be support for the
link
parameter type (usage of previous results). Then, the main script could look like this:And the auto-generated
Action
class:The text was updated successfully, but these errors were encountered: