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

The color sensor cannot "see" the paint splatter... #41

Open
DJuego opened this issue Dec 29, 2020 · 2 comments
Open

The color sensor cannot "see" the paint splatter... #41

DJuego opened this issue Dec 29, 2020 · 2 comments

Comments

@DJuego
Copy link

DJuego commented Dec 29, 2020

It seems that the color sensor cannot see the paint. Would it be feasible to solve this? Maybe it could even be an optional feature (in PaintballLauncher options for example) if you don't want it to affect algorithms that follow lines on the floor...

DJuego

@humbug99
Copy link
Contributor

humbug99 commented Jan 3, 2021

It would be nice if the robot could optionally see the pen traces also - the robot could leave a pen trace behind itself, then follow the pen trace back to the start point...

@QuirkyCort
Copy link
Owner

This can possibly be implemented as an option in the paintball launcher and pen.

The color sensor is very computationally expensive to run; each color sensor is essentially a camera rendering a new image on every read. Some savings are achieved by pre-caching all the shaders, but since the paintball splashes and pen traces are added dynamically, they are not included in the cache.

The paintball splashes shouldn't add much to the computational load, but the pen traces is currently rebuilt from scratch every time it is extended, and that will invalidate the cached shader and requiring it to be recompiled. Could be problematic on slow computers.

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

3 participants