<?xml version="1.0"?>
<robot xmlns:xacro="http://www.ros.org/wiki/xacro">

  <xacro:macro name="pr2_shoulder_gazebo_v0" params="side">

    <!-- Shoulder pan -->
    <gazebo reference="${side}_shoulder_pan_link">
      <turnGravityOff>true</turnGravityOff>
    </gazebo>
    <gazebo reference="${side}_shoulder_pan_joint">
      <stopKd value="1.0" />
      <stopKp value="1000000.0" />
    </gazebo>

    <!-- Shoulder lift -->
    <gazebo reference="${side}_shoulder_lift_link">
      <turnGravityOff>true</turnGravityOff>
    </gazebo>
    <gazebo reference="${side}_shoulder_lift_joint">
      <stopKd value="1.0" />
      <stopKp value="1000000.0" />
    </gazebo>
  </xacro:macro>

  <!-- Upperarm roll: internal fixed attchment point for upper arm -->
  <xacro:macro name="pr2_upper_arm_roll_gazebo_v0" params="side" >
    <gazebo reference="${side}_upper_arm_roll_link">
      <material value="PR2/RollLinks" />
      <turnGravityOff>true</turnGravityOff>
    </gazebo>
    <gazebo reference="${side}_upper_arm_roll_joint">
      <stopKd value="1.0" />
      <stopKp value="1000000.0" />
      <fudgeFactor value="0.5" />
    </gazebo>
  </xacro:macro>
</robot>
