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

enable to write STL collision: #229

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

k-okada
Copy link
Member

@k-okada k-okada commented Jun 11, 2020

support to write STL model for URDF collision element.

irteusgl `rospack find eusurdf`/euslisp/eusmodel_to_urdf.l $EUSDIR/models/room73a3-bariera-1400-middle-0-object.l `rospack find eusurdf`/models/room73a3-bariera-1400-middle-0/ /opt/ros/melodic/lib/collada_urdf_jsk_patch/collada_to_urdf --use-stl 

will produce

<?xml version="1.0"?>
<robot name="room73a3-bariera-1400-middle-0"
       xmlns:xi="http://www.w3.org/2001/XInclude">
  <gazebo>
    <static>false</static>
  </gazebo>
  <link name="nil_link">
    <visual>
      <origin xyz="0 0 0" rpy="0 -0 0"/>
      <geometry>
        <mesh filename="model://room73a3-bariera-1400-middle-0/meshes/nil_link_mesh.dae" scale="1 1 1" />
      </geometry>
    </visual>
    <collision>
      <origin xyz="0 0 0" rpy="0 -0 0"/>
      <geometry>
        <mesh filename="model://room73a3-bariera-1400-middle-0/meshes/nil_link_mesh.stl" scale="1 1 1" />
      </geometry>
    </collision>
    <inertial>
      <mass value="0.001" />
      <origin xyz="0 0 0" rpy="0 -0 0"/>
      <inertia ixx="1e-03" ixy="0" ixz="0" iyy="1e-03" iyz="0" izz="1e-03"/>
    </inertial>
  </link>
  <gazebo reference="nil_link">
    <mu1>0.9</mu1>
    <mu2>0.9</mu2>
  </gazebo>
</robot>

```
irteusgl `rospack find eusurdf`/euslisp/eusmodel_to_urdf.l $EUSDIR/models/room73a3-bariera-1400-middle-0-object.l `rospack find eusurdf`/models/room73a3-bariera-1400-middle-0/ /opt/ros/melodic/lib/collada_urdf_jsk_patch/collada_to_urdf --use-stl --hoge
```
@k-okada k-okada force-pushed the enable_to_write_stl_collision branch from 749b971 to 478aa9b Compare June 11, 2020 12:02
@k-okada k-okada requested a review from makabe0510 June 19, 2020 02:22
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

Successfully merging this pull request may close these issues.

1 participant