From aa5009f6d14fd998df27bb6eeafa657652a21720 Mon Sep 17 00:00:00 2001 From: Brian Delhaisse Date: Fri, 14 Jun 2019 21:42:48 +0200 Subject: [PATCH] minor update on paper --- papers/openai2018learning/__init__.py | 0 papers/openai2018learning/env.py | 5 +++-- papers/openai2018learning/meshes/LICENSE | 8 ++++++++ papers/{ => openai2018learning}/meshes/cube.mtl | 0 papers/{ => openai2018learning}/meshes/cube.obj | 0 papers/{ => openai2018learning}/meshes/cube.png | Bin 6 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 papers/openai2018learning/__init__.py create mode 100644 papers/openai2018learning/meshes/LICENSE rename papers/{ => openai2018learning}/meshes/cube.mtl (100%) rename papers/{ => openai2018learning}/meshes/cube.obj (100%) rename papers/{ => openai2018learning}/meshes/cube.png (100%) diff --git a/papers/openai2018learning/__init__.py b/papers/openai2018learning/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/papers/openai2018learning/env.py b/papers/openai2018learning/env.py index a9dbaad..e7c37d6 100644 --- a/papers/openai2018learning/env.py +++ b/papers/openai2018learning/env.py @@ -9,7 +9,7 @@ Reference: # TODO: end the implementation -# import PyRoboLearn +import os import pyrobolearn as prl __author__ = "Brian Delhaisse" @@ -54,7 +54,8 @@ class Openai2018LearningEnv(prl.envs.Env): robot.print_info() # load cube in hand - cube = world.load_mesh('../meshes/cube.obj', position=[0.1, 0, 0.57], scale=(.05, .05, .05), flags=0) + cube = world.load_mesh(os.path.dirname(__file__) + '/meshes/cube.obj', position=[0.1, 0, 0.57], + scale=(.05, .05, .05), flags=0) cube = prl.robots.Body(simulator, body_id=cube) # create state: fingertip positions (5*3D), object position (3D), object orientation (4D=quaternion), diff --git a/papers/openai2018learning/meshes/LICENSE b/papers/openai2018learning/meshes/LICENSE new file mode 100644 index 0000000..907b59c --- /dev/null +++ b/papers/openai2018learning/meshes/LICENSE @@ -0,0 +1,8 @@ +Copyright 2019, Melissa Britelle + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + diff --git a/papers/meshes/cube.mtl b/papers/openai2018learning/meshes/cube.mtl similarity index 100% rename from papers/meshes/cube.mtl rename to papers/openai2018learning/meshes/cube.mtl diff --git a/papers/meshes/cube.obj b/papers/openai2018learning/meshes/cube.obj similarity index 100% rename from papers/meshes/cube.obj rename to papers/openai2018learning/meshes/cube.obj diff --git a/papers/meshes/cube.png b/papers/openai2018learning/meshes/cube.png similarity index 100% rename from papers/meshes/cube.png rename to papers/openai2018learning/meshes/cube.png