urdf reader segfault condition

Issue #57 resolved
Anonymous created an issue

It looks like if you have a robot that is just a single floating body(like maybe a quadcopter or a body with thrusters) the urdf reader segfaults. An example urdf would be,

<robot name="test_urdf" xmlns:xacro="http://www.ros.org/wiki/xacro">
  <link name="root_body">
      <mass value="1"/>
      <origin rpy="0 0 0" xyz="0.0 0.0 0.0"/>
      <inertia ixx="1.0" ixy="0.0" ixz="0.0" iyy="1.0" iyz="0.0" izz="1.0"/>

It segfaults bc there are no child joints. Think this is the offending line,unsigned int joint_idx = joint_index_stack.top();

Comments (1)

  1. Log in to comment