Skip to content

Commit

Permalink
default disable InMoov2.py
Browse files Browse the repository at this point in the history
  • Loading branch information
supertick committed Apr 27, 2024
1 parent 8d8acb7 commit 077f8b9
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 2 deletions.
10 changes: 10 additions & 0 deletions TODO.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
## TODO

- prompt - gets generated with system info, therby creating "perception" e.g. proximity sensor 2, classification human, position 30
, if a human is nearby assume its <star/> - can answer the question ... where are you ... ("you are just to the left of me")
- doesnt look like it defaults to Intro !?!?
- runtime should say what version java is running and warn if not valid
- lower volume or change boot up sound
- current config name doesn't show up in runtime
- initCheckUp.py isn't getting run
- peak is not working or implemented in the UI
- peak isn't default

## DONE

- a delete config button - should do a move to trash directory with a datetimestamp
- dot dot on Runtime... platform info is late, or doesn't get published should be x86 64
22 changes: 21 additions & 1 deletion src/main/java/org/myrobotlab/service/InMoov2.java
Original file line number Diff line number Diff line change
Expand Up @@ -1565,7 +1565,7 @@ public String publishFlash(String flashName) {
* onHeartbeat at a regular interval
*/
public Heartbeat publishHeartbeat() {
log.info("publishHeartbeat");
log.debug("publishHeartbeat");
heartbeatCount++;
Heartbeat heartbeat = new Heartbeat(this);
try {
Expand Down Expand Up @@ -2295,4 +2295,24 @@ public void waitTargetPos() {
sendToPeer("torso", "waitTargetPos");
}

public void foundPerson(String name) {
foundPerson(name, 1.0);
}

public void foundPerson(String name, Double confidence) {
if (confidence == null) {
confidence = 1.0;
}
Map<String, Object> data = new HashMap<>();
data.put("name", name);
data.put("confidence", confidence);
invoke("publishFoundPerson", data);
}


public Map<String, Object> publishFoundPerson(Map<String, Object> data) {
return data;
}


}
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,10 @@ public class InMoov2Config extends ServiceConfig {

public boolean virtual = false;

public boolean execScript = true;
/**
* false for now to not interfere
*/
public boolean execScript = false;

public InMoov2Config() {
}
Expand Down

0 comments on commit 077f8b9

Please sign in to comment.