Asked — Edited
Resolved Resolved by DJ Sures!

Scripting - How To Start/Stop Camera?

I'm looking through all the camera control options in ARC and once I manually start the camera I can control the modes - all that works fine, the functions work great, the examples in ARC work.

What I can't figure out is how to stop/start the camera feed. Does anyone know if that is even an option?


ARC Pro

Upgrade to ARC Pro

Harnessing the power of ARC Pro, your robot can be more than just a simple automated machine.

PRO
Synthiam
#1  

When editing a script, press the Cheat Sheet tab. The available commands are automatically generated for you. You'll find the camera start and stop in the list. Press the command and it will add to your code.

#2  

@DJSures :D Thank you!:D

In the Examples I must have over looked it several times, I found the Camera Start Stop example. I think what threw me is I could not find the Control under the Cheat Sheet. What I used is this:


#Start
ControlCommand("Camera", CameraStart)

#and for stopping
ControlCommand("Camera", CameraStop)

But the Cheat Sheet from the script help don't show CameraStart or CameraStop

Camera Device CameraServoTrackEnable CameraServoTrackDisable CameraServoTrackToggle CameraMovementTrackEnable CameraMovementTrackDisable CameraMovementTrackToggle CameraServoTrackRelativeEnable CameraServoTrackRelativeDisable CameraServoTrackRelativeToggle CameraSnapshot CameraTweet (Requires additional parameter) CameraViewRealtime CameraViewProcesssed CameraResetQRCode

Camera Recording

CameraRecordToggle CameraRecordStart CameraRecordStop CameraRecordPauseOn CameraRecordPauseOff CameraRecordPauseToggle

Camera Device Tracking Modes

CameraView CameraColorTracking CameraColorTrackingEnable CameraColorTrackingDisable CameraMotionTracking CameraMotionTrackingEnable CameraMotionTrackingDisable CameraFaceTracking CameraFaceTrackingEnable CameraFaceTrackingDisable CameraGlyphTracking CameraGlyphTrackingEnable CameraGlyphTrackingDisable CameraQRCodeTracking CameraQRCodeTrackingEnable CameraQRCodeTrackingDisable CameraCustomTracking CameraCustomTrackingEnable CameraCustomTrackingDisable CameraMultiColorTracking CameraMultiColorTrackingEnable CameraMultiColorTrackingDisable CameraAutoTracking