Hi Tony
there are use cases where this behavior is wanted. The virtual Z
axis of the camera is sort of the "memory" for Z.
Example use case:
button to
bring the nozzle to the location.
again to
check.But you have the choice: If you think this is too dangerous/too unexpected, just unassign the virtual Z axis. Done.

Having said that: this should be
improved by automatically selecting the right tool in Machine
Controls, when you press
or
:

Plus we could disable the button for the tool that is already selected.
Once this is established, we are intuitively manipulating the
right coordinates. So you can press P on the Z controls,
to delete the Camera virtual Z.

This ways you could make such a move safe, prior to pressing
.
--
You received this message because you are subscribed to the Google Groups "OpenPnP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openpnp+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openpnp/96836bdb-91e1-4423-9850-897b4f817681n%40googlegroups.com.
Personally, I hate such modal dialogs. I'd rather add a second
button, one with and one without Z.
_Mark
To view this discussion on the web visit https://groups.google.com/d/msgid/openpnp/f1f63fd5-9524-4bca-bf7a-925a054a5f03n%40googlegroups.com.
I played around with it and IMHO the problem really is the
missing automatic selection of the tool in Machine Controls.
Once we have this, the DRO will show you where it will go in Z:


If you don't like the Z, you can reset it using P on the
Z controls.

The Problem: the tool-tip "Move the
selected nozzle to camera positon" is obviously wrong and we can't
currently have it both ways: the DRO telling us the right target
coordinates, and the selected tool telling us which
nozzle to move (currently it'll move the default i.e. first
nozzle, if the camera is selected).
:-(
One approach would be to remember which was the last active nozzle and make the tool-tip dynamic to tell us, which will be moved.
_Mark
To view this discussion on the web visit https://groups.google.com/d/msgid/openpnp/ae207ea4-704e-4466-b187-d6b5f9030dd7n%40googlegroups.com.
If the head is moved somewhere and the Z position is manually set, then the Z position is remembered only while the head is at that "same place":
if the head is manually moved at all (other than the swap nozzle and camera operation), then the remembered Z needs to be reset to safe-Z, because this is the ONLY safe operation possible.To handle repetitive operations (like setting up a bank of feeders), you might have a shortcut or button that "remembers" that last Z so the user can recall it when the head is at a new position - but that saved Z should never be automatically recalled and used.
To view this discussion on the web visit https://groups.google.com/d/msgid/openpnp/eb1c0c05-44f8-4f7b-be01-ffe78d27b858n%40googlegroups.com.
tony> I guess it puzzles me why the virtual axis
needs to work differently than a real axis.
No, the pattern is exactly the same i.e. symmetric. It is the
classical moveToLocationAtSafe(). Yes, it does move all
HeadMountables to safe Z in order to safely traverse in X/Y but
then it lowers the HeadMountable it actually moves down in Z to
the location. The only difference is that the camera Z is virtual
and (more) obscured from the user.
john> if the head is manually moved at all (other than the swap nozzle and camera operation), then the remembered Z needs to be reset to safe-Z
I like that criteria!
However, some tolerance would have to be applied, because
adjusting a camera position slightly is IMHO often the
purpose of switching back and forth between camera/nozzle, it
should then still not lose Z.
We could add a tolerance of say 20mm around where the virtual Z
was lowered. Once the user jogs the camera farther away, the
virtual Z is automatically reset to Safe Z.
To view this discussion on the web visit https://groups.google.com/d/msgid/openpnp/CAKFrckosGz62-ytBFmnS0uvnKnZvnjgWwiJWgmS%3DvB-oxz_JVw%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openpnp/4a2b0c68-3f6d-4c5d-823b-361e098c2812n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openpnp/CA%2BQw0jwrho4vEeHqUdRBYNQsBM2Mjc%3DJ0pvcMr1uyWOLdCPdjg%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openpnp/CA%2BKNHNzSGBAwj2kyfrNVF_xSfOqq0Cfzg7Yrz7_z_RpkDXJ4iw%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openpnp/CA%2BQw0jy3etqA56KngmLDB%2Br2rd5RtY_5CBtC8Krj4gtXwdCwhw%40mail.gmail.com.
Hi Jason
> Touching off Z
I don't understand (language). Could you explain? Thanks.
_Mark
To view this discussion on the web visit https://groups.google.com/d/msgid/openpnp/CA%2BQw0jwrho4vEeHqUdRBYNQsBM2Mjc%3DJ0pvcMr1uyWOLdCPdjg%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openpnp/6afb6174-e4d9-62f8-cacb-9a0035d05322%40makr.zone.
>Sorry, CNC term. Touching off just means touching the tool to a surface to measure it's Z depth. In other words - a Z probe.
Thanks.
> Finally, I want to reiterate that my intention is to move
OpenPnP towards a camera focused system. I intend to eventually
remove the machine controls tool selection entirely. Positioning
should be done with the camera and if a nozzle is needed it
should be chosen automatically based on the operation taking
place, i.e. based on the part being picked.
The latest testing version goes 90% towards that goal. The
selected tool will now automatically be selected through semantic
user action.
I believe that routinely hiding the Machine Controls (a.k.a.
"Productions Mode") is now a much more practical option.
I dared to default-enable it (subject to discussion). It can be switched off in the Machine:

John Plocher's idea to reset the virtual Z was implemented i.e.
when the user moves the camera more than 5mm from the original
position (where the Z was lowered) it will move the virtual Z to
Safe Z. That should alleviate Tony's concerns.
_Mark
To view this discussion on the web visit https://groups.google.com/d/msgid/openpnp/CA%2BQw0jw26jpO9W%2Bg70%3DEV9odPWv8cd3L7ntj4mKZFxczz3abqw%40mail.gmail.com.








--
You received this message because you are subscribed to the Google Groups "OpenPnP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openpnp+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openpnp/CAKFrckorVQP47dCiffzHzWaJGSOaQZ0q7T-6%2BNtSUjMXELCnBA%40mail.gmail.com.