A.R.G.U.S 2.1.0
Adaptive Real-Time Guardian for Unsafe Situations
Loading...
Searching...
No Matches
Classes | Public Types | Public Member Functions | List of all members
AppController Class Reference

Orchestrates runtime modes for ARGUS. More...

#include <AppController.hpp>

Classes

struct  LiveTestOptions
 Options used by live test and camera backend check modes. More...
 
struct  MotionSmokeTestOptions
 Options for the motion smoke-test mode. More...
 

Public Types

enum class  SmokeJoint {
  All , Base , Lower , Upper ,
  Grip
}
 Joint selector used by motion smoke-test mode. More...
 

Public Member Functions

 AppController () noexcept
 Construct the application controller.
 
 ~AppController () noexcept
 Destroy the application controller.
 
int runGuardianScenarioDemo ()
 Run the scripted guardian scenario demonstration.
 
int runButtonTest ()
 Run physical-button diagnostics.
 
int runServoCalibration ()
 Run interactive raw-pulse servo calibration mode.
 
int runInteractiveServoConsole ()
 Run interactive servo console mode.
 
int runMotionHomePose ()
 Move the arm to the configured home pose and exit.
 
int runMotionSmokeTest (const MotionSmokeTestOptions &options)
 Run motion-only smoke tests using the selected joint scope.
 
int runCameraBackendCheck (const LiveTestOptions &options)
 Run camera backend validation/check mode.
 
int runLiveMarkerTest (const LiveTestOptions &options)
 Run live safety supervision mode.
 

Detailed Description

Definition at line 18 of file AppController.hpp.

Member Enumeration Documentation

◆ SmokeJoint

enum class AppController::SmokeJoint
strong
Enumerator
All 

Run the full all-joint smoke sequence.

Base 

Run smoke test for base joint only.

Lower 

Run smoke test for lower joint only.

Upper 

Run smoke test for upper joint only.

Grip 

Run smoke test for gripper joint only.

Definition at line 23 of file AppController.hpp.

Constructor & Destructor Documentation

◆ AppController()

AppController::AppController ( )
defaultnoexcept

◆ ~AppController()

AppController::~AppController ( )
defaultnoexcept

Member Function Documentation

◆ runButtonTest()

int AppController::runButtonTest ( )

◆ runCameraBackendCheck()

int AppController::runCameraBackendCheck ( const LiveTestOptions options)
Parameters
optionsCamera/backend options.
Returns
Exit code (0 success, non-zero failure).

Definition at line 3087 of file AppController.cpp.

References AppController::LiveTestOptions::backend_preference, CameraCapture::backendImplementation(), AppController::LiveTestOptions::camera_index, FrameEvent::capture_timestamp, and FrameEvent::image_data.

Referenced by main().

◆ runGuardianScenarioDemo()

int AppController::runGuardianScenarioDemo ( )

◆ runInteractiveServoConsole()

int AppController::runInteractiveServoConsole ( )
Returns
Exit code (0 success, non-zero failure).

Definition at line 2750 of file AppController.cpp.

References MotionController::enable(), MotionController::initialise(), MotionController::lastErrorString(), MotionController::setTargets(), and MotionController::shutdown().

Referenced by main().

◆ runLiveMarkerTest()

int AppController::runLiveMarkerTest ( const LiveTestOptions options)

◆ runMotionHomePose()

int AppController::runMotionHomePose ( )
Returns
Exit code (0 success, non-zero failure).

Definition at line 2901 of file AppController.cpp.

References MotionController::enable(), MotionController::initialise(), MotionController::lastErrorString(), MotionController::setTargets(), and MotionController::shutdown().

Referenced by main().

◆ runMotionSmokeTest()

int AppController::runMotionSmokeTest ( const MotionSmokeTestOptions options)
Parameters
optionsSmoke-test options.
Returns
Exit code (0 success, non-zero failure).

Definition at line 2949 of file AppController.cpp.

References MotionChannelMap::base, MotionController::enable(), MotionController::initialise(), AppController::MotionSmokeTestOptions::joint, MotionController::lastErrorString(), MotionController::setTargets(), and MotionController::shutdown().

Referenced by main().

◆ runServoCalibration()

int AppController::runServoCalibration ( )

The documentation for this class was generated from the following files: