Coder Social home page Coder Social logo

Comments (6)

peci1 avatar peci1 commented on June 18, 2024

from robot_body_filter.

juansolana avatar juansolana commented on June 18, 2024

This is the urdf of the robot. The collisions within ${arm_id}_touchpoint are the ones I'm trying to apply the filter config of padding and scaling.

`

<xacro:include filename="$(find franka_description)/robots/panda_arm.xacro"/>

<xacro:macro name="arm" params="arm_id:='panda'">

<xacro:panda_arm arm_id="${arm_id}_arm" connected_to="${arm_id}_arm_base_link" xyz="0 0 0" rpy="0 0 0"/>

<!-- Touchpoints -->
<link name="${arm_id}_touchpoint">
  <visual>
    <geometry>
      <mesh filename="package://description/meshes/touchpoints/${arm_id}_tp_100.stl"/>
    </geometry>
    <material name="blue">
      <color rgba="0 0  .8 1"/>
    </material>
    <origin rpy="0 0 0" xyz="0 0 0.021"/>  <!-- Millibar Offset -->
  </visual>
  <collision>
    <geometry>
      <cylinder length="0.2" radius="0.05" />
    </geometry>
    <origin rpy="55 90 0" xyz="0 0 0.05"/>
    <geometry>
      <mesh filename="package://description/meshes/touchpoints/${arm_id}_tp_100.stl" scale="1.05"/>
    </geometry>
    <origin rpy="0 0 0" xyz="0 0 0.021"/>
  </collision>
</link>

<joint name="${arm_id}_touchpoint_joint" type="fixed">
  <parent link="${arm_id}_arm_link8"/>
  <child link="${arm_id}_touchpoint"/>
</joint>

</xacro:macro>

<xacro:arm arm_id="right"/>
<xacro:arm arm_id="left"/>

`

from robot_body_filter.

peci1 avatar peci1 commented on June 18, 2024

The <collision> you posted is weird. It contains two <geometry> nodes, while I'm almost sure URDF only allows one geometry per collision. You can specify multiple collisions, each with a single geometry node.

from robot_body_filter.

juansolana avatar juansolana commented on June 18, 2024

I guess that explains why only see the cylinder collision geometry in RViz. You think having both collision is what makes the per link scale and padding not work? The normal way that applies to all collisions works fine, and I can tell that the scaling and padding is not applied to the second collision that doesn't even show up.

from robot_body_filter.

peci1 avatar peci1 commented on June 18, 2024

That's my guess. As you're using invalid URDF, many things can break and this could be one of them. Try fixing the URDF and let me know if it fixed the issue.

from robot_body_filter.

peci1 avatar peci1 commented on June 18, 2024

Closing this issue because there is probably not much this library can do with invalid inputs.

from robot_body_filter.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.