GitXplorerGitXplorer
m

rock_detector

public
5 stars
0 forks
3 issues

Commits

List of commits on branch master.
Verified
18c08f948f172e9e0c73994a75fd0e6637b26030

Update README.md

mmatwilso committed 6 years ago
Verified
1b1611dfef795374258cb1a9f0f45b09f2f8b0e8

update mujoco instructions to avoid GLEW error

mmatwilso committed 7 years ago
Unverified
ba7da237db9542db801e8012b2e51e9f8786e901

change logdir. add weight load message.

mmatwilso committed 7 years ago
Unverified
b3a8a26ba0f9c0e8b5a74c04486e2b537945329f

add bleacher background. tweak some other minor things

mmatwilso committed 7 years ago
Unverified
9c4ae1fe726fb2a7bfed44a3e806c41a812fac7f

merge

mmatwilso committed 7 years ago
Unverified
6faef53a27ef1f12ac4b5e296a42fa7096e0ac0b

increase fov range to include zed specs. other minor updates.

mmatwilso committed 7 years ago

README

The README file for this repository.

rock_detector

[IN PROGRESS]
Domain randomization to train a convolutional neural net (VGG16) rock detector using Tensorflow and Mujoco, for NASA Robotic Mining Competition

Introduction

Check out this OpenAI blog post for an intro to Domain Randomization: https://blog.openai.com/spam-detection-in-the-physical-world/

I followed the details in this paper: https://arxiv.org/pdf/1703.06907.pdf

There was some nice stuff in OpenAI's mujoco_py repo to make this easier

Demo

Real robot view
test

YouTube video showing domain randomization

rock detector. exciting uh?

Installation

Install mujoco_py

READ THIS if you are getting ERROR: GLEW initialization error: Missing GL version

This was a huge headache and I had to do some hacky stuff to get it to work on my Ubuntu desktop. Mac was really easy to get it working and I would guess putting it in the cloud is not bad, because I'm pretty sure that's the way the folks at OpenAI are doing it.-

To get it to work, I cloned the repo, modified some source files, ran sudo python3 setup.py install in the folder and it somewhat worked.

git clone https://github.com/openai/mujoco-py.git
cd mujoco_py
pip3 install -r requirements.txt
sudo python3 setup.py install

Then, there will be many errors to fix, but most several are fixed by apt-get getting or pip installing something.

After that, I was still getting some errors, like this. I had to do some hacky stuff and I am not using GPU rendering, but it is running. If you have any issues, feel free to reach out to me.

Install blender

sudo apt-get install blender

Test it with

blender

If you are running on your local desktop (w/ monitor):

Use the file in assets/add_mesh_rock.zip and follow: https://blender.stackexchange.com/questions/8746/how-can-i-make-unique-rocks-in-blender-without-having-to-model-them-by-hand

Then activate it by clicking the check mark

[untested] Alternatively, if you are running headless (in cloud):

cp /path/to/rock_detector/assets/add_mesh_rocks.zip ~/.config/blender/<VERSION>/scripts/addons/

cd ~/.config/blender/<VERSION>/scripts/addons
unzip add_mesh_rocks.zip

Mujoco Tips

  <visual>
    <map znear=0.01 /> 
  </visual>