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

Generated Schunk .urdf has incorrect orientations

asked 2018-07-03 09:22:57 -0500

PatFGarrett gravatar image

updated 2018-07-17 15:32:17 -0500


I am working with a Schunk LWA 3 (dof 7) arm and controlling it through MoveIt!

I use the below schunk.urdf.xacro and $rosrun xacro schunk.urdf.xacro > lwa.urdf to generate a "high-level" urdf file. The attached file calls the lwa.urdf.xacro from Schunk Description

When I use the resulting urdf in MoveIt! setup assistant everything is fine except that the gripper is inverted and the arm is orientated along the -Z axis.

My question is where do I fix the issue? All the values seem to be positive and correct in the urdf's I am using. Where does this change in orientation come from ?

Thank you for your time.


<?xml version="1.0"?>
<robot xmlns:sensor=""
name="schunk" >

<!-- schunk arm -->
<include filename="$(find schunk_description)/urdf/lwa/lwa.urdf.xacro" />

<!-- schunk gripper -->
<include filename="$(find schunk_description)/urdf/pg70/pg70.urdf.xacro" />

<!-- foot for arm-->

<link name="base_link">


<origin xyz="0 0 0" rpy="0 0 0"/>

<mass value="10.0"/>

<inertia ixx="0.1"  ixy="0"  ixz="0" iyy="0.1" iyz="0" izz="0.1" />



<xacro:schunk_lwa name="arm" parent="base_link">

<origin xyz="0 0 0" rpy="0 0 0" />


<xacro:schunk_pg70 name="gripper" parent="arm_7_link">

<origin xyz="0 0 0" rpy="0 0 0" />


edit retag flag offensive close merge delete


It's actually quite easy to format the code, once you know how to do it. Paste it, highlight it, then click the 101010 button (or press Ctrl-k).

jayess gravatar image jayess  ( 2018-07-17 15:31:15 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2018-07-17 15:28:48 -0500

PatFGarrett gravatar image

I fixed this issue by cloning the older groovy-dev branch of schunk_robots, then used the lwa.urdf.xacro in schunk_hardware_config to create the new URDF

This fixes the issue of the arm orientation, next edit the "rpy" values of the grippers orientation in the lwa.urdf.xacro to solve the grippers orientation issues. Rerun the commands to make another "fixed" URDF.

edit flag offensive delete link more

Question Tools



Asked: 2018-07-03 09:22:57 -0500

Seen: 289 times

Last updated: Jul 17 '18