MoveIt-IKFast Plugin: Converting .xacro / .xacro.urdf to .urdf

asked 2019-08-09 14:16:53 -0500

yg97 gravatar image

I'm having trouble converting the panda_arm.xacro.urdf file into a .urdf file .I'm having issues so since the file doesn't exist I am instead using panda_arm.xacro as the reference file but, when it I run the file to be converted to .dae file for openrave it cannot parse the file since the xacro link code is parsed.

Tutorial < https://ros-planning.github.io/moveit... >

Directory: ~/catkin_ws/src/panda_moveit_config/config

panda_arm.xacro :

<?xml version="1.0" ?>
<robot xmlns:xacro="http://www.ros.org/wiki/xacro" name="panda">
  <xacro:macro name="panda_arm">
    <!--GROUPS: Representation of a set of joints and links. This can be useful for specifying DOF to plan for, defining arms, end effectors, etc-->
    <!--LINKS: When a link is specified, the parent joint of that link (if it exists) is automatically included-->
    <!--JOINTS: When a joint is specified, the child link of that joint (which will always exist) is automatically included-->
    <!--CHAINS: When a chain is specified, all the links along the chain (including endpoints) are included in the group. Additionally, all the joints that are parents to included links are also included. This means that joints along the chain and the parent joint of the base link are included in the group-->
    <!--SUBGROUPS: Groups can also be formed by referencing to already defined group names-->
    <group name="panda_arm">
      <chain base_link="panda_link0" tip_link="panda_link8" />
    </group>
    <!--GROUP STATES: Purpose: Define a named state for a particular group, in terms of joint values. This is useful to define states like 'folded arms'-->
    <group_state name="ready" group="panda_arm">
      <joint name="panda_joint1" value="0" />
      <joint name="panda_joint2" value="-0.785" />
      <joint name="panda_joint3" value="0" />
      <joint name="panda_joint4" value="-2.356" />
      <joint name="panda_joint5" value="0" />
      <joint name="panda_joint6" value="1.571" />
  <joint name="panda_joint7" value="0.785" />
</group_state>

<!--END EFFECTOR: Purpose: Represent information about an end effector.-->
<!--VIRTUAL JOINT: Purpose: this element defines a virtual joint between a robot link and an external frame of reference (considered fixed with respect to the robot)-->
<virtual_joint name="virtual_joint" type="floating" parent_frame="world" child_link="panda_link0" />
<!--DISABLE COLLISIONS: By default it is assumed that any link of the robot could potentially come into collision with any other link in the robot. This tag disables collision checking between a specified pair of links. -->
<disable_collisions link1="panda_link0" link2="panda_link1" reason="Adjacent" />
<disable_collisions link1="panda_link0" link2="panda_link2" reason="Never" />
<disable_collisions link1="panda_link0" link2="panda_link3" reason="Never" />
<disable_collisions link1="panda_link0" link2="panda_link4" reason="Never" />
<disable_collisions link1="panda_link1" link2="panda_link2" reason="Adjacent" />
<disable_collisions link1="panda_link1" link2="panda_link3" reason="Never" />
<disable_collisions link1="panda_link1" link2="panda_link4" reason="Never" />
<disable_collisions link1="panda_link2" link2="panda_link3" reason="Adjacent" />
<disable_collisions link1="panda_link2" link2="panda_link4" reason="Never" />
<disable_collisions link1="panda_link2" link2="panda_link6" reason="Never" />
<disable_collisions link1="panda_link3" link2="panda_link4" reason="Adjacent" />
<disable_collisions ...
(more)
edit retag flag offensive close merge delete