RoboTutorLLC / RoboTutor_2020

Other
3 stars 1 forks source link

Feature request: Specify in config.json whether RoboTutor should make RoboFeel run and indicate whether it is. #70

Open JackMostow opened 3 years ago

JackMostow commented 3 years ago

Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Specify whether RoboFeel should run whenever RoboTutor does.

Describe the solution you'd like A clear and concise description of what you want to happen.

  1. Enable/disable RoboFeel in config.json.
  2. If enabled, start RoboFeel service when RoboTutor launches, and stop when it exits or crashes
  3. RoboTutor display whether RoboFeel is running.

Describe alternatives you've considered

A clear and concise description of any alternative solutions or features you've considered.

Approach to be followed (optional) A clear and concise description of approach to be followed.

Use these images:

Size: half the height of the green banner at the top of the screen

Location: on the right end of the banner, in the bottom half of the banner to avoid overlap with tutor ID

Additional context Add any other context or screenshots about the feature request here.

See how to add a config variable at ConfigurationItems.java.

Use eye pair images from Eye Roll

JackMostow commented 3 years ago

Modify RTFaceLogin to stop RoboFeel when recording selfies -- necessary only if RoboTutor crashes without stopping RoboFeel.

If we decide we want visual cues during RTFaceLogin, make it launch RoboFeel when it starts and after recording each selfie.

JackMostow commented 3 years ago
How to create a branch enable_RoboFeel

Code for getting parameters from config.json
-- add Enable_RoboFeel analogous to enabling screen recording

-- see if screen recorder is a service (afraid not)
Google to find out:

How to start a service StartService() How to stop a service StopService()

When to start:  at launch
When to stop:
    At exit
    At crash

    (only needed in case RoboTutor crashes without stopping RoboFeel) when RTFaceLogin starts or records video
JackMostow commented 3 years ago

@AASTHAVALECHA @sushant-varanasi I added a branch enable_robofeel for you to make the changes specified above. Please clone it and verify that you can push to it.

JackMostow commented 2 years ago

See 2021-10-07 Integrating Robofeel into Robotutor.

AASTHAVALECHA commented 2 years ago

@sushant-varanasi I was facing a problem in pushing In Oncreate Function Write the code to start service, Component name specifies the package and the packagename.nameofservice that is Robofeel

Intent i = new Intent(); i.setComponent(new ComponentName("mayank.example.rtcamera", "mayank.example.rtcamera.RoboService")); startService(i);

In Ondestroy Write the code to stop service, Component name specifies the package and the packagename.nameofservice that is Robofeel

//Stop Service

Intent i = new Intent(); i.setComponent(new ComponentName("mayank.example.rtcamera", "mayank.example.rtcamera.RoboService")); stopService(I);

I made the following changes