Sketch Pad icon Sketch Pad — Script-driven Sketch Pad for ARC: draw shapes, text, lines and faces via controlCommand() to visualize object locations, paths and robot data. Try it →
Lebanon
Asked — Edited
1 Participant

Hello All! i am interfacing the ARDRONE with th ARC. i noticed that when tracking an object (for example a green ball), the debuger shows comments like (middle right, middle left...) i assume that it is related to the pixel position of the object on the grid. i wonder, is it possible to save the debuger results on a file?


ARC Pro

Upgrade to ARC Pro

Experience early access to the latest features and updates. You'll have everything that is needed to unleash your robot's potential.

Author Avatar
PRO
Synthiam
LinkedIn Thingiverse Twitter YouTube GitHub
#1  

You could create a script like this...


$filename = "c:\log.txt"

:START

IF ($CameraIsTracking = true)
  $line = "X: $CameraCenterX, Y: $CameraCenterY"
  fileWriteLine($filename, $line)
ENDIF 
  
sleep(100)

GOTO(START)
Author Avatar
Lebanon
#2  

thanks buddy... you are great. i am just new to all these stuff, it is for my PhD. i will remember of you in my dissertation. thanks a ton

Carlos.

Author Avatar
PRO
Synthiam
LinkedIn Thingiverse Twitter YouTube GitHub
#3  

Excellent!:)

Looking forward to seeing your creation!