- Posts: 4819
- Thank you received: 0
Vismach - The easist example
3 years 7 months ago #267239
by Aciera
Replied by Aciera on topic Vismach - The easist example
Oh, I meant that the effects of 'tooltip' and 'work' only become visible if you have a connection from linuxcnc to the vismach model by connection the halpins you created in the vismach code like:
#create the HAL component and pins
comp = hal.component("vismach-example")
comp.newpin("joint0", hal.HAL_FLOAT, hal.HAL_IN)
comp.ready()
And use them to translate/rotate the body to which the 'tooltip' has been attached by the Collection() function. ie it will then draw the line that 'records' the movement.
#create the HAL component and pins
comp = hal.component("vismach-example")
comp.newpin("joint0", hal.HAL_FLOAT, hal.HAL_IN)
comp.ready()
And use them to translate/rotate the body to which the 'tooltip' has been attached by the Collection() function. ie it will then draw the line that 'records' the movement.
Please Log in to join the conversation.
Time to create page: 0.072 seconds
