Skip to content

change tic rate on the fly, (or different rates) #7

@elpimous

Description

@elpimous

Hi Patrick,

I'm using pi_trees with my homemade robot like this :

(Tic rate is 3 times per second)

  • Alfred checks battery, etc...
  • If SUCCEDED, next task recognizes face (dlib detection+deep google dlib reco) (, at the defined rate of .3),
  • next task detects face with haarcascades, and do tracking. In this task, I did a 'while' loop in the task, to use camera topic rate for tracking. (and loop exit when no face detection)

The problem is that I'd like to use parallel tasks, (tracking+brain) with a correct rate for tracking.
(ex : during tracking, I can ask questions to Alfred. But, working with deep learning STT model, process takes some time (0.5 to 1sec). I'd like it to not disturb tracking fluidity)
Can't do it with the while, otherwise it locks task !!

Now, here is my question : can I use default rate .3 for general, and a different rate or .08 for tracking ??
Or change refresh rate on the fly

Thanks for this lib, Patrick.

Vincent.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions