Create variables in function of kinematics values

More
24 Sep 2015 04:08 #62906 by jstoquica
Something like that:
net J0pos irb.th1 irbgui.joint0
net J1pos irb.th2 irbgui.joint1
net J2pos irb.th3 irbgui.joint2
net J3pos irb.th4 irbgui.joint3
net J4pos irb.th5 irbgui.joint4

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

More
24 Sep 2015 04:11 #62907 by andypugh
You will need new signal names, you can't use the same ones as you are already using for actuator positions.

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

More
24 Sep 2015 04:37 #62909 by jstoquica
Yes, it's only for test. Already I don't add actuators variables.

But When I did how I show you before, and when I try to home the jotint 3 appeared the next error:


joint 3 following error
emc/task/taskintf.cc 614: Error on axis 3, command number 127


any idea?
Attachments:

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

More
24 Sep 2015 04:45 #62910 by andypugh

emc/task/taskintf.cc 614: Error on axis 3, command number 127


Do you have the position-cmd to position-fb loopback in place for all active joints?

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

More
24 Sep 2015 05:52 - 24 Sep 2015 05:52 #62914 by jstoquica
I enabled them, but the joints of vismach model doesn't move. Here is my HAL code:
# load RT modules
loadrt irb
loadrt [EMCMOT]EMCMOT servo_period_nsec=[EMCMOT]SERVO_PERIOD traj_period_nsec=[EMCMOT]TRAJ_PERIOD num_joints=[TRAJ]AXES

#add motion controller functions to servo thread
addf motion-command-handler servo-thread
addf motion-controller servo-thread

# create HAL signals for position commands from motion module
net J0pos <= axis.0.motor-pos-cmd
net J1pos <= axis.1.motor-pos-cmd
net J2pos <= axis.2.motor-pos-cmd
net J3pos <= axis.3.motor-pos-cmd
net J4pos <= axis.4.motor-pos-cmd


# loop position commands back to motion module feedback
net J0pos => axis.0.motor-pos-fb
net J1pos => axis.1.motor-pos-fb
net J2pos => axis.2.motor-pos-fb
net J3pos => axis.3.motor-pos-fb
net J4pos => axis.4.motor-pos-fb

# estop loopback
net estop-loop iocontrol.0.user-enable-out iocontrol.0.emc-enable-in

# create signals for tool loading loopback
net tool-prep-loop iocontrol.0.tool-prepare iocontrol.0.tool-prepared
net tool-change-loop iocontrol.0.tool-change iocontrol.0.tool-changed

loadusr -W irbgui

net J0p irb.th1 irbgui.joint0
net J1p irb.th2 irbgui.joint1
net J2p irb.th3 irbgui.joint2
net J3p irb.th4 irbgui.joint3
net J4p irb.th5 irbgui.joint4
Last edit: 24 Sep 2015 05:52 by jstoquica.

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

More
24 Sep 2015 05:56 #62915 by andypugh

I enabled them, but the joints of vismach model doesn't move.


Are the th* pins changing value?

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

More
24 Sep 2015 06:07 #62917 by jstoquica
They are not! With HAL meter I can check that the value is 0 for those pins.

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

More
24 Sep 2015 06:34 #62918 by andypugh

They are not! With HAL meter I can check that the value is 0 for those pins.


There is something wrong in your kinematics then.
Did you create the pins as output pins?

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

More
24 Sep 2015 06:49 - 25 Sep 2015 03:18 #62919 by jstoquica
Yes, I did. I don't know what is wrong. I attach the kinematics file.

Thanks.
Last edit: 25 Sep 2015 03:18 by jstoquica.

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

More
24 Sep 2015 06:58 #62920 by andypugh

I attach the kinematics file. .


You might need to re-name it as a .txt file

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

Time to create page: 0.115 seconds
Powered by Kunena Forum