Comments (1)
So I found this 'quick start guide' https://gist.github.com/danielsnider/e09c56a96b187eec23c482f9400e59a1
which showed me where I needed to input my robot's IP address.
And now it finally moving!
Heres the guid for UR5 just incase the page goes all 404 on you!
SenseAct Quick Start
This guide has been tested on Ubuntu 16.04.
Install General Dependecies
sudo apt update
sudo apt install python3 python3-dev python3-pip python3-tk cmake libopenmpi-dev zlib1g-dev git
Install MuJuCo Robotics Simulator
The SenseAct learning task in simulation uses a popular physics simulator called MuJoCo. First install the prerequisites for MuJoCo:
sudo apt install patchelf libgl1-mesa-dev libgl1-mesa-glx libglew-dev libosmesa6-dev
Then install MuJoCo according to their install guide.
Sign up for a 30-day free trial on the MuJoCo website or free license if you are a student. The license key will arrive in an email with your username and password.
Download the MuJoCo version 1.50 binaries Linux, OSX, or Windows.
Unzip the downloaded mjpro150 directory into ~/.mujoco/mjpro150, and place your license key (the mjkey.txt file from your email) at ~/.mujoco/mjkey.txt.
Add MuJoCo to your PATH:
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/dan/.mujoco/mjpro150/bin
echo "export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/dan/.mujoco/mjpro150/bin" >> ~/.bashrc
Install SenseAct
Download SenseAct:
git clone https://github.com/kindredresearch/SenseAct
cd SenseAct
(Optionally) Create a python virtual environment:
pip3 install virtualenv
virtualenv venv
source venv/bin/activate
Install SenseAct's python dependencies:
pip3 install -e .
pip3 install baselines==0.1.5
Run SenseAct
For your first learning task, we'll simulate the robotic control of a double inverted pendulum in a MuJuCo simulation.
Enable visualization of the simulated world in MuJoCo:
sed -i 's/is_render=False/is_render=True/g' ./examples/advanced/sim_double_pendulum.py
Start learning:
python3 ./examples/advanced/sim_double_pendulum.py
Hardware Setup
UR Robot Arm
Tested on UR Software v. 3.3.4.310. To control a UR robot arm you will need its IP address and be connected to the same network. You can find the IP address on the teach pendent under network settings.
Once you have the IP address of the arm enter it here:
SenseAct/examples/advanced/ur5_reacher.py
# Create UR5 Reacher2D environment
env = ReacherEnv(
setup="UR5_default",
host="192.168.5.20", <-- Set IP here
Now start learning:
python3 examples/advanced/ur5_reacher.py
If you want to use a pretrained model:
git checkout load_model
python3 examples/advanced/ur5_reacher.py ./examples/advanced/pre_trained_models/ur_reacher_2_trpo.pkl
from senseact.
Related Issues (20)
- Soft-Q learning implementation HOT 2
- UR Reacher on CB2 HOT 13
- Change from RT Interface to RTDE to support future e-series versions - UR Reacher
- UR Reacher on UR e-series HOT 9
- DDPG + HER to replace TRPO HOT 7
- Warning: incomplete packet from UR HOT 12
- Where does the experiment data get saved to? HOT 5
- How to achieve replicable results in SenseAct? HOT 3
- the meaning of Hyperparameters
- Refactor dxl_reacher and dxl_tracker to allow user to specify port and baud. HOT 1
- Update dxl_reacher and dxl_tracker to use new baselines function call format
- dxl_basic_functions.py: rewrite to allow configurable port, id, baud, etc.
- Simulating UR in ROS HOT 10
- UR 3.5.4.10845 ur5_reacher.py Error
- Remove custom PID controller from DXL envs
- Aggregate shared code in DXL and Create2 envs
- Extract communicators for Create environments
- Add check for latency for all serial connections
- Train on specific points? Discrete action_space [with distinct points]!
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from senseact.