On 05/07/16 22:27, Mathias Giacomuzzi wrote:
@Schooner,

Today I tried your post to switch from joint to world mode, but that does not work. So I tried halcmd setp halui.mode.teleop 1.


So I get the following:

halcmd getp halui.mode.teleop
FALSE

halcmd setp halui.mode.teleop 1
halcmd getp halui.mode.teleop
TRUE

But it does not work.

That shows it _does_ work, but for some reason you are not seeing the result expected in terms of movement.

There is only one way to do it
https://github.com/machinekit/machinekit/blob/master/src/emc/usr_intf/halui.cc#L1110

The python method in Axis, just does the same by a round about route

So has someone any idea what I could use to switch the mode from machineface?

Not me I am afraid


I tried to modify my config to run the axis UI i get ii to work. If i switch there from the UI and read back I get false.
halcmd getp halui.mode.teleop
FALSE

I am not quite sure what you are saying - that Axis does not change mode either?
Is it running on its own or in tandem?

The problem with UI's, Axis in particular, is that they tend to maintain an internal state for some values and do not check globally.
This is because they expect to be the only UI and not to have other UI's running in parallel.

I suspect that if Axis did not set world mode, it will think you are in joint mode and vice versa, because that is what its internal function vars.joint_mode.get() returns
https://github.com/machinekit/machinekit/blob/master/src/emc/usr_intf/axis/scripts/axis.py#L2563

So toggling the mode may not yield the result you expected


thanks
mathias





--
website: http://www.machinekit.io blog: http://blog.machinekit.io github: https://github.com/machinekit
---
You received this message because you are subscribed to the Google Groups "Machinekit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
Visit this group at https://groups.google.com/group/machinekit.
For more options, visit https://groups.google.com/d/optout.

--
website: http://www.machinekit.io blog: http://blog.machinekit.io github: https://github.com/machinekit
---
You received this message because you are subscribed to the Google Groups "Machinekit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
Visit this group at https://groups.google.com/group/machinekit.
For more options, visit https://groups.google.com/d/optout.

Reply via email to