Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using visual and collision models of custom gripper #203

Open
Gregor-G opened this issue Nov 18, 2023 · 1 comment
Open

Using visual and collision models of custom gripper #203

Gregor-G opened this issue Nov 18, 2023 · 1 comment

Comments

@Gregor-G
Copy link

Hi, maybe I am wrong but it seems that it is not possible to automatically use collision mesh of the custom end-effector. In the RVIZ I wanted to have both models: precise = visual and simplified = collision. In the xarm_description/meshes I created a custom_directory with visual and collision folders and proper stl files with the same names. I adjusted the demo.launch. As an argument I set add_other_geometry as true and geometry_type as mesh. I recommend to add an information in manual or change the code in file other_geometry.urdf.xacro as follows:

      <visual>
        <origin xyz="${_origin_xyz}" rpy="${_origin_rpy}" />
        <geometry>
          <xacro:if value="${geometry_type == 'mesh'}">
            <xacro:common_link_mesh mesh_filename="other/visual/${_mesh_filename}" use_mesh_path="${use_mesh_path}" />
          </xacro:if>
       ...

and

     <collision>
        <origin xyz="${_origin_xyz}" rpy="${_origin_rpy}" />
        <geometry>
          <xacro:if value="${geometry_type == 'mesh'}">
            <xacro:common_link_mesh mesh_filename="other/collision/${_mesh_filename}" use_mesh_path="${use_mesh_path}" />
          </xacro:if>
       ...
@penglongxiang
Copy link
Contributor

Thanks for your suggestion, we will consider this modification in later commits. In the mean time, you may fork and modify the code to suit your needs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants