Skip to content

Commit

Permalink
Added contingency planning scripts.
Browse files Browse the repository at this point in the history
  • Loading branch information
firephinx committed Oct 7, 2020
1 parent 5c93f22 commit 89e2104
Show file tree
Hide file tree
Showing 986 changed files with 874,293 additions and 0 deletions.
8 changes: 8 additions & 0 deletions manipulation/README.md
Expand Up @@ -6,6 +6,14 @@ The manipulation repository consists of 7 packages.

The Franka-Interface package in the franka-interface folder and the FrankaPy package in the frankapy folder were created by the Intelligent Manipulation Lab to control the Franka Panda Research Robot at 1kHz. Installation instructions are located in the README.md file in the each folder.

## Playing with Food

This folder contains the scripts we used to collect the data for our ISER 2020 Abstract. In addition, it contains the scripts we used to train our preliminary food embeddings and a link to the Google Drive containing all of our collected data.

## Contingency Planning

This folder contains all the scripts for a work-in-progress ICRA paper on generating parameters for skills when a previous executed skill may have failed. It depends on Nvidia's isaac gym simulator and a python wrapper library called carbongym-utils.

## DMP

The DMP package in the dmp folder was created by the Intelligent Manipulation Lab to train new dmp skills using trajectories recorded by the robot-interface package above.
Expand Down
81 changes: 81 additions & 0 deletions manipulation/contingency_planning/assets/baseline/block0.urdf
@@ -0,0 +1,81 @@
<robot name="block">

<link name="block1">
<visual>
<origin xyz="0.0 0.0 0.0" rpy="0 0 0"/>
<geometry>
<box size="0.021034317667567002 0.05 0.05"/>
</geometry>
<material name="dark_yellow">
<color rgba="0.5 0.5 0.1 1"/>
</material>
</visual>
<collision>
<origin xyz="0.0 0.0 0.0" rpy="0 0 0"/>
<geometry>
<box size="0.021034317667567002 0.05 0.05"/>
</geometry>
</collision>
<inertial>
<mass value="0.13460818654061035"/>
<inertia ixx="5.608674439192099e-05" ixy="0" ixz="0" iyy="3.300640429851682e-05" iyz="0" izz="3.300640429851682e-05"/>
</inertial>
</link>

<link name="block2">
<visual>
<origin xyz="0.0 0.0 0.0" rpy="0 0 0"/>
<geometry>
<box size="0.021034317667567002 0.05 0.05"/>
</geometry>
<material name="dark_yellow">
<color rgba="0.5 0.5 0.1 1"/>
</material>
</visual>
<collision>
<origin xyz="0.0 0.0 0.0" rpy="0 0 0"/>
<geometry>
<box size="0.021034317667567002 0.05 0.05"/>
</geometry>
</collision>
<inertial>
<mass value="0.13460818654061035"/>
<inertia ixx="5.608674439192099e-05" ixy="0" ixz="0" iyy="3.300640429851682e-05" iyz="0" izz="3.300640429851682e-05"/>
</inertial>
</link>

<link name="block3">
<visual>
<origin xyz="0.0 0.0 0.0" rpy="0 0 0"/>
<geometry>
<box size="0.107931364664866 0.05 0.05"/>
</geometry>
<material name="dark_yellow">
<color rgba="0.5 0.5 0.1 1"/>
</material>
</visual>
<collision>
<origin xyz="0.0 0.0 0.0" rpy="0 0 0"/>
<geometry>
<box size="0.107931364664866 0.05 0.05"/>
</geometry>
</collision>
<inertial>
<mass value="0.13460818654061035"/>
<inertia ixx="5.608674439192099e-05" ixy="0" ixz="0" iyy="0.00015871628255231446" iyz="0" izz="0.00015871628255231446"/>
</inertial>
</link>

<joint name="block_link1" type="fixed">
<parent link="block1"/>
<child link="block2"/>
<origin xyz="0.021034317667567002 0.0 0.0"/>
</joint>

<joint name="block_link2" type="fixed">
<parent link="block2"/>
<child link="block3"/>
<origin xyz="0.0644828411662165 0.0 0.0"/>
</joint>

</robot>
81 changes: 81 additions & 0 deletions manipulation/contingency_planning/assets/baseline/block1.urdf
@@ -0,0 +1,81 @@
<robot name="block">

<link name="block1">
<visual>
<origin xyz="0.0 0.0 0.0" rpy="0 0 0"/>
<geometry>
<box size="0.07211358790870193 0.05 0.05"/>
</geometry>
<material name="dark_yellow">
<color rgba="0.5 0.5 0.1 1"/>
</material>
</visual>
<collision>
<origin xyz="0.0 0.0 0.0" rpy="0 0 0"/>
<geometry>
<box size="0.07211358790870193 0.05 0.05"/>
</geometry>
</collision>
<inertial>
<mass value="0.15004541700616258"/>
<inertia ixx="6.251892375256775e-05" ixy="0" ixz="0" iyy="9.628376349097678e-05" iyz="0" izz="9.628376349097678e-05"/>
</inertial>
</link>

<link name="block2">
<visual>
<origin xyz="0.0 0.0 0.0" rpy="0 0 0"/>
<geometry>
<box size="0.038943206045649034 0.05 0.05"/>
</geometry>
<material name="dark_yellow">
<color rgba="0.5 0.5 0.1 1"/>
</material>
</visual>
<collision>
<origin xyz="0.0 0.0 0.0" rpy="0 0 0"/>
<geometry>
<box size="0.038943206045649034 0.05 0.05"/>
</geometry>
</collision>
<inertial>
<mass value="2.4532908608643393"/>
<inertia ixx="0.0010222045253601415" ixy="0" ixz="0" iyy="0.0008211518801501016" iyz="0" izz="0.0008211518801501016"/>
</inertial>
</link>

<link name="block3">
<visual>
<origin xyz="0.0 0.0 0.0" rpy="0 0 0"/>
<geometry>
<box size="0.038943206045649034 0.05 0.05"/>
</geometry>
<material name="dark_yellow">
<color rgba="0.5 0.5 0.1 1"/>
</material>
</visual>
<collision>
<origin xyz="0.0 0.0 0.0" rpy="0 0 0"/>
<geometry>
<box size="0.038943206045649034 0.05 0.05"/>
</geometry>
</collision>
<inertial>
<mass value="0.15004541700616258"/>
<inertia ixx="6.251892375256775e-05" ixy="0" ixz="0" iyy="5.02223679417724e-05" iyz="0" izz="5.02223679417724e-05"/>
</inertial>
</link>

<joint name="block_link1" type="fixed">
<parent link="block1"/>
<child link="block2"/>
<origin xyz="0.05552839697717548 0.0 0.0"/>
</joint>

<joint name="block_link2" type="fixed">
<parent link="block2"/>
<child link="block3"/>
<origin xyz="0.038943206045649034 0.0 0.0"/>
</joint>

</robot>
81 changes: 81 additions & 0 deletions manipulation/contingency_planning/assets/baseline/block10.urdf
@@ -0,0 +1,81 @@
<robot name="block">

<link name="block1">
<visual>
<origin xyz="0.0 0.0 0.0" rpy="0 0 0"/>
<geometry>
<box size="0.015963019529394978 0.05 0.05"/>
</geometry>
<material name="dark_yellow">
<color rgba="0.5 0.5 0.1 1"/>
</material>
</visual>
<collision>
<origin xyz="0.0 0.0 0.0" rpy="0 0 0"/>
<geometry>
<box size="0.015963019529394978 0.05 0.05"/>
</geometry>
</collision>
<inertial>
<mass value="0.3132806528639849"/>
<inertia ixx="0.00013053360535999372" ixy="0" ixz="0" iyy="7.191926493421256e-05" iyz="0" izz="7.191926493421256e-05"/>
</inertial>
</link>

<link name="block2">
<visual>
<origin xyz="0.0 0.0 0.0" rpy="0 0 0"/>
<geometry>
<box size="0.06284058452872442 0.05 0.05"/>
</geometry>
<material name="dark_yellow">
<color rgba="0.5 0.5 0.1 1"/>
</material>
</visual>
<collision>
<origin xyz="0.0 0.0 0.0" rpy="0 0 0"/>
<geometry>
<box size="0.06284058452872442 0.05 0.05"/>
</geometry>
</collision>
<inertial>
<mass value="0.319027217310867"/>
<inertia ixx="0.00013292800721286126" ixy="0" ixz="0" iyy="0.00017144892368059297" iyz="0" izz="0.00017144892368059297"/>
</inertial>
</link>

<link name="block3">
<visual>
<origin xyz="0.0 0.0 0.0" rpy="0 0 0"/>
<geometry>
<box size="0.07119639594188061 0.05 0.05"/>
</geometry>
<material name="dark_yellow">
<color rgba="0.5 0.5 0.1 1"/>
</material>
</visual>
<collision>
<origin xyz="0.0 0.0 0.0" rpy="0 0 0"/>
<geometry>
<box size="0.07119639594188061 0.05 0.05"/>
</geometry>
</collision>
<inertial>
<mass value="0.3132806528639849"/>
<inertia ixx="0.00013053360535999372" ixy="0" ixz="0" iyy="0.00019759986065439336" iyz="0" izz="0.00019759986065439336"/>
</inertial>
</link>

<joint name="block_link1" type="fixed">
<parent link="block1"/>
<child link="block2"/>
<origin xyz="0.0394018020290597 0.0 0.0"/>
</joint>

<joint name="block_link2" type="fixed">
<parent link="block2"/>
<child link="block3"/>
<origin xyz="0.06701849023530251 0.0 0.0"/>
</joint>

</robot>
81 changes: 81 additions & 0 deletions manipulation/contingency_planning/assets/baseline/block100.urdf
@@ -0,0 +1,81 @@
<robot name="block">

<link name="block1">
<visual>
<origin xyz="0.0 0.0 0.0" rpy="0 0 0"/>
<geometry>
<box size="0.07097914877364765 0.05 0.05"/>
</geometry>
<material name="dark_yellow">
<color rgba="0.5 0.5 0.1 1"/>
</material>
</visual>
<collision>
<origin xyz="0.0 0.0 0.0" rpy="0 0 0"/>
<geometry>
<box size="0.07097914877364765 0.05 0.05"/>
</geometry>
</collision>
<inertial>
<mass value="0.5314645443499405"/>
<inertia ixx="0.0002214435601458086" ixy="0" ixz="0" iyy="0.00033385006336524194" iyz="0" izz="0.00033385006336524194"/>
</inertial>
</link>

<link name="block2">
<visual>
<origin xyz="0.0 0.0 0.0" rpy="0 0 0"/>
<geometry>
<box size="0.045025215530767125 0.05 0.05"/>
</geometry>
<material name="dark_yellow">
<color rgba="0.5 0.5 0.1 1"/>
</material>
</visual>
<collision>
<origin xyz="0.0 0.0 0.0" rpy="0 0 0"/>
<geometry>
<box size="0.045025215530767125 0.05 0.05"/>
</geometry>
</collision>
<inertial>
<mass value="0.5314645443499405"/>
<inertia ixx="0.0002214435601458086" ixy="0" ixz="0" iyy="0.00020050695879601083" iyz="0" izz="0.00020050695879601083"/>
</inertial>
</link>

<link name="block3">
<visual>
<origin xyz="0.0 0.0 0.0" rpy="0 0 0"/>
<geometry>
<box size="0.03399563569558522 0.05 0.05"/>
</geometry>
<material name="dark_yellow">
<color rgba="0.5 0.5 0.1 1"/>
</material>
</visual>
<collision>
<origin xyz="0.0 0.0 0.0" rpy="0 0 0"/>
<geometry>
<box size="0.03399563569558522 0.05 0.05"/>
</geometry>
</collision>
<inertial>
<mass value="0.15996972777981533"/>
<inertia ixx="6.665405324158973e-05" ixy="0" ixz="0" iyy="4.873348776349237e-05" iyz="0" izz="4.873348776349237e-05"/>
</inertial>
</link>

<joint name="block_link1" type="fixed">
<parent link="block1"/>
<child link="block2"/>
<origin xyz="0.058002182152207385 0.0 0.0"/>
</joint>

<joint name="block_link2" type="fixed">
<parent link="block2"/>
<child link="block3"/>
<origin xyz="0.03951042561317617 0.0 0.0"/>
</joint>

</robot>

0 comments on commit 89e2104

Please sign in to comment.