Skip to content

Confusion regarding moveit planning_frame #669

@faev999

Description

@faev999

Hi all,
I am using the moveit packages (with no modifications) provided by this repository in order to plan Cartesian trajectories for an ur10e robot. While planning and executing the movement, I noticed weird movements where the robot didn't seem to move as expected. I noticed that getPlanningFrame returns base_link when I would expect base given that echo /tf returns tool0 with respect to base and this matches what I see on the teach pendant. base_link is rotated 180° around the Z axis and this is the source of the problem. I also noticed the existence of base_link_inertia, which is rotated 180° around the Z axis with respect to base_link (thus matching base ); so the first question is what are the differences between this frames and when am I suppose to use each of them? in order to fix my problem I used self.group.set_pose_reference_frame("base")which actually works but then using current_pose = self.group.get_current_pose().pose returns a pose with respect to base_link. is there a way to fix this using the moveit API? or do I have to modify/add a file somewhere? any help is much appreciated.

Edit: I forgot to mention that I am using the melodic_devel branch and Universal_Robots_ROS_Driver

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