Skip to content

world frame not set in MTC demos #89

Closed

Description

@gautz

Could it be that #86 introduced a regression in the MTC (cartesian) demo? With fixed, the world frame is not set when running e.g.:

  • roslaunch moveit_task_constructor_demo demo.launch
  • rosrun moveit_task_constructor_demo cartesian

Activity

  1. rhaschke commented on Jun 30, 2021

    @rhaschke
    Contributor

    Yes, the static_transform_publisher shouldn't have been removed here! Not sure, why @v4hn explicitly asked to do so?!

  2. v4hn commented on Jun 30, 2021

    @v4hn
    Contributor

    Not sure, why @v4hn explicitly asked to do so?!

    Sorry for the missing explanation there.
    To do it properly, I should have asked to regenerate the demo.launch file with the setup assistant again and fix the package name references again...
    But the result would have been the same (except for the useless comment that would have stayed).
    The template value is only filled in for non-fixed virtual joints.

    Is this a bug in MSA that went unnoticed for a very long time or is there some other culprit?

  3. rhaschke commented on Jun 30, 2021

    @rhaschke
    Contributor

    Maybe in this case the culprit is the MTC demo, which simply relies on the existence of the world frame. We should also check whether other demos or tutorials rely on this fact...

  4. rhaschke commented on Jul 14, 2021

    @rhaschke
    Contributor

    My students ran into this issue today as well...

    Rethinking this issue, I think we should keep the static_transform_publisher as long as we keep a virtual joint at all!
    I will have a look into MSA to check the logic there...

  5. captain-yoshi commented on Sep 13, 2021

    @captain-yoshi

    Even with the static_transform_publisher back, the cartesian demo still yields the error for me. Adding the virtual joint as floating type or planar removes the error. The demo still succeeds because it returns identity !

    [ERROR] [1631501055.303124483]: Unable to transform from frame 'world' to frame 'panda_link0'. Returning identity.

    This is because the virtual joint was changed to fixed. The robot model frame now points out to the root link instead of the world link from the SRDF.

    The PlanningScene will fail to retrieve the "world" tf, and the PlanningSceneMonitor also. The PlanningSceneMonitor can retrieve the virtual link only if it was constructed with a tf_buffer. The static_transform_publisher must be set.

    I suspect that if someone would run moveit_ros_benchmarks with and object wrt. the frame world, it would fail because the PlanningSceneMonitor would not be able to resolve the virtual tf (see here). You can't add object wrt. the world in the RViz MotionPlanning plugin, so this might not be triggered at all.

  6. captain-yoshi commented on Sep 13, 2021

    @captain-yoshi

    The pick_and_place demo uses the CurrentState stage which gets the appropriate world frame because it gets it from the move_group node. On the other hand, the cartesian demo uses the PlanningScene which does not have the tf information. In the past it worked because the virtual joint was not fixed and thus was available from the robot model.

  7. rhaschke commented on Sep 15, 2021

    @rhaschke
    Contributor

    The bug seems to be resolved in the master branch. @captain-yoshi, which version of MoveIt did you use?

  8. captain-yoshi commented on Sep 15, 2021

    @captain-yoshi

    Tested with commit ffe4697696147f0e4db116a19f70cde7c5f5d074 in Noetic. Will try on latest commit later.

  9. captain-yoshi commented on Sep 15, 2021

    @captain-yoshi

    Still got the error with:

    • moveit: ffe4697696147f0e4db116a19f70cde7c5f5d074
    • moveit_resources_panda_moveit_config: e093827
    • mtc: 4e3ff579263fb79e7d0e7a1937cef22fc8de9024

    There is also an Unregistered type error, don't know if it's related

    [ERROR] [1631706600.685322091]: Unregistered type: St3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEdSt4lessIS5_ESaISt4pairIKS5_dEEE
    [ERROR] [1631706600.685412041]: Unregistered type: St3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEdSt4lessIS5_ESaISt4pairIKS5_dEEE
    [ERROR] [1631706600.686839831]: Unable to transform from frame 'world' to frame 'panda_link0'. Returning identity.
    [ERROR] [1631706600.745426669]: Unable to transform from frame 'world' to frame 'panda_link0'. Returning identity.
    [ERROR] [1631706600.832965875]: Unable to transform from frame 'world' to frame 'panda_link0'. Returning identity.
  10. rhaschke commented on Sep 15, 2021

    @rhaschke
    Contributor

    Sorry, I missed that you were referring to the cartesian demo. Indeed, with this, I can reproduce the issue.

  11. rhaschke commented on Sep 15, 2021

    @rhaschke
    Contributor

    When suggesting a fixed joint I was trapped by a bad naming of MoveIt's "fixed" joint: This is actually a dummy joint realizing an identity transform only. This is in contrast to URDF fixed joints, which can realize an arbitrary transform. I suggest to fix the behavior in MoveIt - at least in the long run - and allow for an arbitrary (but fixed) transform here as well.

  12. rhaschke commented on Sep 15, 2021

    @rhaschke
    Contributor

    Switching back to a floating joint triggers a new error (message) from the Pilz pipeline:
    [ERROR] ros.pilz_industrial_motion_planner: Multi-DOF-Joints not supported. The robot won't move.

  13. v4hn commented on Sep 15, 2021

    @v4hn
    Contributor

    Yes, I do believe we have a rather systematic problem in MoveIt. I was unaware the FixedTransform class always returns identity!
    Until I read that I thought the problem is caused by MoveIt expecting the fixed transform to be read from TF, but that shouldn't be required with the hard-coded identity, should it?

    [ERROR] ros.pilz_industrial_motion_planner: Multi-DOF-Joints not supported. The robot won't move.

    moveit/moveit1#2741 Point 8.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions