Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
elpimous opened this issue Nov 22, 2017 · 0 comments
Open

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

elpimous opened this issue Nov 22, 2017 · 0 comments

Comments

@elpimous
Copy link

elpimous commented Nov 22, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant