Omron HVC-P2 icon Omron HVC-P2 — Omron HVC-P/HVC-P2 ARC plugin: Python-based camera integration for body, hand and face detection, gaze, age/gender, expressions and face recognition. Try it →
United Kingdom
Asked — Edited

Hi guys, so i have a quick question regarding scripting, basically im trying to make some kind of maping code with ARC, for some reason the sonar scan module doesnt work to well with my robot but thats another story, what i wanna know is

1 - can i jump to another script from within a running script and then back again , ie if i made a simple script for forward motion i could include some kind of sub script to check the ping sensor and if nothing is within range jump back to the origional script and carry on ?

2 - from within a subscript can i use ie, if(D1 < 10 goto (another script) )

3 - can i save a value somewhere or somehow , ie move sonar servo left, save value then move right and save value then figure out which way is best ?

I know its basically what the sonar sweep does but like i said that doesnt work to well on my omnibot, he senses something then just spins around in a circle, also i would rather do it with scripts so i can add in other variables and sounds etc etc.

Hope that makes sense

Thanks Kurt


ARC Pro

Upgrade to ARC Pro

ARC Pro is your gateway to a community of like-minded robot enthusiasts and professionals, all united by a passion for advanced robot programming.

#9  

DJ, I went to down load the "If you reference my wall-e big example" and it does not appear to be there any longer. Where have you hidden it??

Author Avatar
PRO
Synthiam
LinkedIn Thingiverse Twitter YouTube GitHub
#10  
  1. Launch ARC

  2. Select File

  3. Select Examples

  4. Select Robot - Wall-e Bit

  5. Smile