Joypad Joint and Cartesian Mode Jogging

More
27 May 2024 01:42 #301540 by Project_Hopeless
I have a 5-DOF robot.  I have my Joypad setup so that in World/Cartesian, the left joystick is X and Y, the right Z.  I have the directions relative a 1st person POV.  This works as I intended.

When I switch to joint mode in Axis The individual axis that jogs is not natural and I would like to change that for joint mode jogging.

Is there a way to make the "input." assignments from the joypad conditional, one assignment set for World, another for Joint mode? 

 

 

Please Log in or Create an account to join the conversation.

More
28 May 2024 10:35 #301654 by andypugh
Yes. Look in your HAL file and you probably have a block of assignments like:

net jog-x input.0.analog0 axis.x.jog-analog joint.0.jog-analog

(This is from memory, but something like that)

You just need to swap the joint letters and axis numbers to suit your requirements.

Please Log in or Create an account to join the conversation.

More
29 May 2024 00:17 - 29 May 2024 00:19 #301710 by Project_Hopeless

andypugh post=301654 userid=723
net jog-x input.0.analog0 axis.x.jog-analog joint.0.jog-analog

You just need to swap the joint letters and axis numbers to suit your requirements.
 

Andy,  That would make it a permanent change no? 
 
I'm looking to be able to toggle the joypad behavior based on the current jog mode mode World/Joint.  Is that possible, a sort of "IF" statement  in HAL?
 
Last edit: 29 May 2024 00:19 by Project_Hopeless.

Please Log in or Create an account to join the conversation.

More
29 May 2024 06:01 #301730 by Aciera
For switchkins (which you are probably using) you could connect your respective jogging input pins to 'kinstype.is-0' / 'kinstype.is-1' by means of an 'and2' component.
The following user(s) said Thank You: Project_Hopeless

Please Log in or Create an account to join the conversation.

Time to create page: 0.085 seconds
Powered by Kunena Forum