- Posts: 6803
- Thank you received: 2181
Camera For Touchoff
6 years 1 month ago #184352
by cmorley
Replied by cmorley on topic Camera For Touchoff
Try:
halcmd loadusr -Wn qtvcp_embed qtvcp -d -c qtvcp_embed -x {XID} cam_align
halcmd loadusr -Wn qtvcp_embed qtvcp -d -c qtvcp_embed -x {XID} cam_align
Please Log in or Create an account to join the conversation.
5 years 2 months ago #217184
by partec
Replied by partec on topic Camera For Touchoff
as phillc54's cam_align_handler.py named ..._2020-09-18.py still works fine in buster LCNC 2.8.0 there it does not work anymore in buster LCNC 2.8.2
Please Log in or Create an account to join the conversation.
5 years 2 months ago - 5 years 2 months ago #217186
by phillc54
Replied by phillc54 on topic Camera For Touchoff
I haven't looked at this code for a long time...
The error is here:
I cannot see that piece of code in the file posted here whcih I think is the latest:
forum.linuxcnc.org/plasmac/40057-camera-...choff?start=0#182507
Are you sure this is what you are using?
The error is here:
Code:
File "/home/eruepe/linuxcnc/configs/PAR_ISEL/cam_align_handler.py", line 88, in nextFrame
self.pin_.set(360 - self.w.camview.rotation)
AttributeError: HandlerClass instance has no attribute 'pin_'
I cannot see that piece of code in the file posted here whcih I think is the latest:
forum.linuxcnc.org/plasmac/40057-camera-...choff?start=0#182507
Are you sure this is what you are using?
Last edit: 5 years 2 months ago by phillc54.
The following user(s) said Thank You: partec
Please Log in or Create an account to join the conversation.
5 years 2 months ago #217190
by partec
Replied by partec on topic Camera For Touchoff
thank you so much - just now, when I test with your named cam_align_handler.py file here, this loads and works in LCNC 2.8.2 as expected!
The following user(s) said Thank You: phillc54
Please Log in or Create an account to join the conversation.
5 years 2 months ago #217192
by partec
Replied by partec on topic Camera For Touchoff
Phill, may I ask, can you just publish the appropriate cam_align.ui file here, please?
Please Log in or Create an account to join the conversation.
5 years 2 months ago - 5 years 2 months ago #217193
by phillc54
Replied by phillc54 on topic Camera For Touchoff
The one in my previous post is the latest as far as I know.
Edit:
I think I misunderstood, you wanted the .ui file.
It doesn't use a .ui file, it uses the standard QtVCP camview widget. the source is here:
github.com/LinuxCNC/linuxcnc/blob/2.8/li...ts/camview_widget.py
Edit:
I think I misunderstood, you wanted the .ui file.
It doesn't use a .ui file, it uses the standard QtVCP camview widget. the source is here:
github.com/LinuxCNC/linuxcnc/blob/2.8/li...ts/camview_widget.py
Last edit: 5 years 2 months ago by phillc54.
The following user(s) said Thank You: partec
Please Log in or Create an account to join the conversation.
Moderators: snowgoer540
Time to create page: 0.071 seconds