|
I have a simple question that if i want to control the joint like joint 3(elbow) on both arms left_arm & right_arm, how can i call functions like setPositions && setControlModes, since these functions only differentiate joints but not distinguish left or right arm. I try to find some demo codes relate to this problem but failed, may i didnt find the right website. Thanks in advance. |
Replies: 2 comments 8 replies
|
Hi @jimingda You ought to simply open 2 device drivers, one for the left and one for the right arm. Then, you'll have to duplicate the calls. For example, There are ways to open just one single device to control all the robot joints using ad-hoc remappers. However, this is more advanced and it is not available on all the robots. |
|
Hi, sorry for reviving this discussion after so many years, but I'm also interested in controlling joints belonging to different iCub parts. I found this example, which demonstrates how to control multiple joints as if they belonged to the same robot part using I'm currently facing some issues with this approach (see this issue). However, apart from that problem, it seems to work reasonably well. I was wondering whether there are alternative approaches to achieve the same goal. Is |
Hi @jimingda
Find below a possible implementation.
I didn't compile it though so there might be errors.