ambf icon indicating copy to clipboard operation
ambf copied to clipboard

joints not appearing in ECM model with no passive joints

Open nag92 opened this issue 4 years ago • 2 comments

in the ECM model I made all the joints passive: false

This made 9/12 joints appear in the output. The following joints did not appear

  • yaw link-pitch back link
  • pitch bottom link-pitch end link
  • pitch top link-pitch end link

nag92 avatar Dec 26 '20 18:12 nag92

@nag92 @cshreyastech Hey guys, can you create an answer for this based on our last discussion.

adnanmunawar avatar Jan 04 '21 17:01 adnanmunawar

@adnanmunawar , thanks for explaining the behavior.

         A
     /        \
    /           \
  B             C
    \          /
     \        /
         D
          |
          |
         E

Suppose that we have 2 parallel joints ABD and ACD. Only one of the joint would be published in AMBF say ABD in this example. This is because body D can be controlled by just ACD and commanding ABD will become redundant.

The joint which is defined first in the YAML file among AB or AC gets the privileged of ROS control.

So, what if we would like to get the joint details of body C or Joint CD? This can be done by creating a rigidbody handler of body C. Joint CD can be controlled by getting the child of C.

cshreyastech avatar Jan 04 '21 22:01 cshreyastech