ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Arm striked the ground while using moveit

asked 2022-10-24 14:27:19 -0500

akumar3.1428 gravatar image

updated 2022-10-30 09:35:29 -0500

lucasw gravatar image

I am using xarm6 (https://github.com/xArm-Developer/xar...) when I am using moveit to plan a random path sometimes it reaches below the base (ground) and plans the path there, hence strikes the ground when execute on real robot. Please advice what should I do to avoid it ?

edit retag flag offensive close merge delete

Comments

Two questions:

  1. did you model "the ground", or is your robot alone, floating in space, with no other geometry?
  2. did you plan to a random, valid joint pose, or just a random one?
gvdhoorn gravatar image gvdhoorn  ( 2022-10-25 01:28:01 -0500 )edit
  1. I am using the specified pakage of xarm to move the real arm, so I am not sure about the answer to your question, however in moveit it seems like it's fixed from the base.
  2. I did random valid.
akumar3.1428 gravatar image akumar3.1428  ( 2022-10-25 09:00:25 -0500 )edit

I am using the specified pakage of xarm to move the real arm, so I am not sure about the answer to your question, however in moveit it seems like it's fixed from the base.

then the answer is most likely: "no, there is no ground plane modelled".

In that case MoveIt did exactly as I would expect: it doesn't know anything about your scene, so no "ground" or ground plane. It only knows about your robot, hanging there in completely empty space. It will assume it's free to move the robot through all that empty space. Including the space occupied by the ground or table your robot is standing on.

gvdhoorn gravatar image gvdhoorn  ( 2022-10-25 13:39:01 -0500 )edit

Hi ! Thank you for your response, any suggestions in how can I fix it without creating a new moveit package?

akumar3.1428 gravatar image akumar3.1428  ( 2022-10-25 22:19:49 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted
0

answered 2022-10-26 09:25:14 -0500

akumar3.1428 gravatar image

For future users, this issue can be easily resolved adding box in the urdf file . I used the following code

<link name="ground_plane_box">
    <visual>
        <origin xyz="0 0 0" rpy="0 0 0"/>
        <geometry>
            <box size="1.0 1.0 0.5"/> 
        </geometry>
        <material name="Grey">
            <color rgba="0.7 0.7 0.7 1.0"/>
        </material>
    </visual>
    <collision>
        <origin xyz="0 0 0" rpy="0 0 0"/>
        <geometry>
            <box size="1.0 1.0 0.5"/> 
        </geometry>
    </collision>
</link>

<joint name="ground_plane_box" type="fixed">
    <parent link="world" />
    <child link="ground_plane_box" />
    <origin xyz="0 0 -0.25" rpy="0 0 0" />
</joint>
edit flag offensive delete link more
0

answered 2022-10-25 04:02:58 -0500

nils_iseke gravatar image

You can follow the anwser provided here, adding a groundplane to you URDF.

edit flag offensive delete link more

Comments

Hi, I am using there official moveit package to move the real arm, if I will make changes in the URDF , I am not sure how can I make a moveit package to move the real arm, can you please suggest something else that I can do to resolve this issue? or how can I make the moveit package from base to move the real robot.

akumar3.1428 gravatar image akumar3.1428  ( 2022-10-25 08:58:51 -0500 )edit

There is nothing wrong with changing the URDF. The existing Moveit package should continue to be used without any problems. If you really don't want to change anything in the URDF, you can also add a box as a floor in RVIZ: Motion Planning --> Scene Objects tab. That will then be taken into account in the motion planning.

nils_iseke gravatar image nils_iseke  ( 2022-10-26 03:06:42 -0500 )edit

Hi, thank you for the solution and added the required changes in the below code link as mentioned here. However, I am getting an warning in rviz window under MotionPlanning Status:Warn -> Requesting initial scene failed, could you please descibe a solution to this. Thank you in advance, looking forward to hearing from you.

akumar3.1428 gravatar image akumar3.1428  ( 2022-10-26 08:12:41 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2022-10-24 14:27:19 -0500

Seen: 126 times

Last updated: Oct 26 '22