How to call a function of URscrips (UR5) from a ROS node?
Dear all users,
I am trying to get feedback from torque of each joint in UR5 using ROS UR universal package. According to URscript manual, there is a Module internals including some functions, one of which is for getting torque of each joint (get_joint_ torques()).
My question is that
1-how can I use this function?
2-Where should I declare it and call it?
3-Do need to change or add anything in driver.py in universal robot package?
4-How can I call these function from a ROS node?
If I create a file and define that standard function in this file, how can I use it, I mean How can I call it from a ROS node?
I really appreciate if you help me out?