You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
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...
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...
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.
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.
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.
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.
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.
Activity
rhaschke commentedon Jun 30, 2021
Yes, the static_transform_publisher shouldn't have been removed here! Not sure, why @v4hn explicitly asked to do so?!
v4hn commentedon Jun 30, 2021
Sorry for the missing explanation there.
To do it properly, I should have asked to regenerate the
demo.launchfile 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?
rhaschke commentedon Jun 30, 2021
Maybe in this case the culprit is the MTC demo, which simply relies on the existence of the
worldframe. We should also check whether other demos or tutorials rely on this fact...rhaschke commentedon Jul 14, 2021
My students ran into this issue today as well...
Rethinking this issue, I think we should keep the
static_transform_publisheras long as we keep a virtual joint at all!I will have a look into MSA to check the logic there...
captain-yoshi commentedon Sep 13, 2021
Even with the
static_transform_publisherback, 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 !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
PlanningScenewill fail to retrieve the "world" tf, and thePlanningSceneMonitoralso. ThePlanningSceneMonitorcan retrieve the virtual link only if it was constructed with a tf_buffer. Thestatic_transform_publishermust be set.I suspect that if someone would run
moveit_ros_benchmarkswith and object wrt. the frame world, it would fail because thePlanningSceneMonitorwould 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.captain-yoshi commentedon Sep 13, 2021
The
pick_and_placedemo uses theCurrentStatestage which gets the appropriate world frame because it gets it from the move_group node. On the other hand, thecartesiandemo 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.rhaschke commentedon Sep 15, 2021
The bug seems to be resolved in the master branch. @captain-yoshi, which version of MoveIt did you use?
captain-yoshi commentedon Sep 15, 2021
Tested with commit
ffe4697696147f0e4db116a19f70cde7c5f5d074in Noetic. Will try on latest commit later.captain-yoshi commentedon Sep 15, 2021
Still got the error with:
There is also an Unregistered type error, don't know if it's related
rhaschke commentedon Sep 15, 2021
Sorry, I missed that you were referring to the
cartesiandemo. Indeed, with this, I can reproduce the issue.rhaschke commentedon Sep 15, 2021
When suggesting a
fixedjoint 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.rhaschke commentedon Sep 15, 2021
Switching back to a
floatingjoint 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.v4hn commentedon Sep 15, 2021
Yes, I do believe we have a rather systematic problem in MoveIt. I was unaware the
FixedTransformclass 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?
moveit/moveit1#2741 Point 8.
Switching back to floating virtual joint