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

art_touch_driver: attempt to assign to self.slot which is None #154

Open
ZdenekM opened this issue Dec 4, 2018 · 3 comments
Open

art_touch_driver: attempt to assign to self.slot which is None #154

ZdenekM opened this issue Dec 4, 2018 · 3 comments
Assignees

Comments

@ZdenekM
Copy link
Member

ZdenekM commented Dec 4, 2018

Traceback (most recent call last):                                                                                 
  File "/home/dev/artable_ws/src/artable-repos/artable/art_touch_driver/src/node.py", line 275, in <module>                                                                                                                            
    node.process()                                                                                                                                                                                                                     
  File "/home/dev/artable_ws/src/artable-repos/artable/art_touch_driver/src/node.py", line 179, in process                                                                                                                             
    self.slot.x = event.value                                                                                                                                                                                                          
AttributeError: 'NoneType' object has no attribute 'x'
@ZdenekM
Copy link
Member Author

ZdenekM commented Dec 4, 2018

@Kapim Nepodíval by ses na to příležitostně? Psal jsi to ty a mě se v těch slotech a jak to vlastně funguje nějak nedaří vyznat...

@ZdenekM ZdenekM changed the title art_touch_driver: attempt to assign to uninitialized self.slot art_touch_driver: attempt to assign to self.slot which is None Dec 4, 2018
@ZdenekM
Copy link
Member Author

ZdenekM commented Dec 4, 2018

Krom toho padání se někdy děje, že to po spuštění pořád dokola posílá dotyk s id=-1:

---
id: -1
touch: True
point: 
  header: 
    seq: 0
    stamp: 
      secs: 1543917892
      nsecs:  68722963
    frame_id: marker
  point: 
    x: -0.000166264668884
    y: -8.07370149616e-05
    z: 0.0
---
id: -1
touch: True
point: 
  header: 
    seq: 0
    stamp: 
      secs: 1543917892
      nsecs:  77727079
    frame_id: marker
  point: 
    x: -0.000750976917604
    y: -0.000373727291437
    z: 0.0
---

@Kapim Kapim self-assigned this Jan 21, 2019
Kapim pushed a commit to Kapim/artable that referenced this issue Jan 21, 2019
@Kapim
Copy link
Collaborator

Kapim commented Jan 21, 2019

Krom toho padání se někdy děje, že to po spuštění pořád dokola posílá dotyk s id=-1:

Posílá to samo ty dotyky s id=-1 i bez toho aby ses dotkl dotykovky (hrozná věta :)) nebo pouze při skutečném dotyku? Jestli samo, tak se na to ještě budu muset podívat, jestli při dotyku, tak by to mělo být vyřešeno spolu s padáním commitem viz výše

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

2 participants